Skip to content

Commit 9730dde

Browse files
committed
fix: Reverting border-radius update, and using overflow hidden on tag
1 parent c512daa commit 9730dde

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/components/src/styles/components/form/super-select.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Copied from components/src/styles/components/tag.scss styles
99
// we set a higher value than the line-height (~13px) to accommodate cases where the text wraps
10-
$hds-tag-border-radius: 20px; // This variable is repeated from tag.scss
10+
$hds-tag-border-radius: 50px; // This variable is repeated from tag.scss
1111
$hds-super-select-item-height: 36px;
1212

1313
// Style overrides:

packages/components/src/styles/components/tag.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@use "../mixins/focus-ring" as *;
1111

1212
// we set a higher value than the line-height (~13px) to accommodate cases where the text wraps
13-
$hds-tag-border-radius: 20px;
13+
$hds-tag-border-radius: 50px;
1414

1515
.hds-tag {
1616
display: inline-flex;
@@ -20,6 +20,12 @@ $hds-tag-border-radius: 20px;
2020
background-color: var(--token-color-surface-interactive);
2121
border: 1px solid var(--token-color-border-strong);
2222
border-radius: $hds-tag-border-radius;
23+
overflow: hidden;
24+
}
25+
26+
.hds-tag:focus-within,
27+
.hds-tag:has(.mock-focus) {
28+
overflow: visible;
2329
}
2430

2531
.hds-tag__dismiss {

0 commit comments

Comments
 (0)