Skip to content

Commit ee58184

Browse files
authored
Fix autowidth computation taking into account the indicator width (#70)
* Fix autowidth computation taking into account the indicator width * Fix autowidth for combobox * Tune yarn config
1 parent 4586fc0 commit ee58184

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.yarnrc.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
enableImmutableInstalls: false
2-
31
nodeLinker: node-modules
42

53
yarnPath: .yarn/releases/yarn-3.6.0.cjs

packages/components/src/select/select.styles.ts

+5
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export const selectStyles: FoundationElementTemplate<
8686
width: 100%;
8787
}
8888
89+
:host([autowidth]) ::slotted([role='option']),
90+
:host([autowidth]) ::slotted(option) {
91+
padding: 0 calc(1em + ${designUnit} * 1.25px + 1px);
92+
}
93+
8994
.listbox[hidden] {
9095
display: none;
9196
}

0 commit comments

Comments
 (0)