Skip to content

Commit d22d6bf

Browse files
Merge pull request #43 from jeffreylauwers/fix/select-width-xl-full-icon-position
fix(Select): chevron icon valt buiten de select box bij XL en Full width
2 parents 62e7c76 + bea9bf6 commit d22d6bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/components-react/src/Select/Select.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@
2929
/* Select — reset browser defaults, hide native arrow, add padding for custom icon */
3030
/* Also override :read-only styles from dsn-text-input, because browsers consider
3131
<select> as :read-only (non-typeable), which incorrectly triggers those styles. */
32+
/* max-inline-size is set to none so the wrapper controls the width, not the select itself. */
3233
.dsn-select {
3334
appearance: none;
3435
background-color: var(--dsn-text-input-background-color);
3536
border: var(--dsn-text-input-border-width) solid
3637
var(--dsn-text-input-border-color);
3738
color: var(--dsn-text-input-color);
3839
cursor: pointer;
40+
max-inline-size: none;
3941
padding-inline-end: var(--dsn-select-padding-inline-end-with-icon);
4042
}
4143

0 commit comments

Comments
 (0)