Skip to content

Commit 9e8f300

Browse files
committed
refactor(ui-tag,shared-types): remove maxWidth theme variable from Tag
1 parent b478d71 commit 9e8f300

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

packages/shared-types/src/ComponentThemeVariables.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,6 @@ export type TagTheme = {
14261426
focusOutlineColor: Colors['contrasts']['blue4570']
14271427
focusOutlineWidth: Border['widthMedium']
14281428
focusOutlineStyle: Border['style']
1429-
maxWidth: string | 0
14301429
iconMargin: Spacing['small']
14311430
transitionTiming: string
14321431
defaultBackgroundHover: Colors['contrasts']['grey1214']

packages/ui-tag/src/Tag/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ type: example
6969
</div>
7070
```
7171

72-
### Max-width
73-
74-
```js
75-
---
76-
type: example
77-
---
78-
<Tag
79-
text="Long string of text designed to trigger overflow"
80-
/>
81-
```
82-
8372
### Inline variant
8473

8574
This variant is designed to look similar to the surrounding text.

packages/ui-tag/src/Tag/styles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ const generateStyle = (componentTheme: TagTheme, props: TagProps): TagStyle => {
206206
whiteSpace: 'nowrap',
207207
overflow: 'hidden',
208208
textOverflow: 'ellipsis',
209-
maxWidth: componentTheme.maxWidth,
210209
...sizeVariants[size!].text
211210
},
212211
icon: {

packages/ui-tag/src/Tag/theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const generateComponentTheme = (theme: Theme): TagTheme => {
5858
focusOutlineColor: colors?.contrasts?.blue4570,
5959
focusOutlineWidth: borders.widthMedium,
6060
focusOutlineStyle: borders.style,
61-
maxWidth: '10rem',
6261
iconMargin: spacing.xSmall,
6362
transitionTiming: '0.2s',
6463

0 commit comments

Comments
 (0)