Skip to content

Commit

Permalink
Fix autowidth computation taking into account the indicator width (#70)
Browse files Browse the repository at this point in the history
* Fix autowidth computation taking into account the indicator width

* Fix autowidth for combobox

* Tune yarn config
  • Loading branch information
fcollonval authored Aug 20, 2023
1 parent 4586fc0 commit ee58184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
enableImmutableInstalls: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.0.cjs
5 changes: 5 additions & 0 deletions packages/components/src/select/select.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ export const selectStyles: FoundationElementTemplate<
width: 100%;
}
:host([autowidth]) ::slotted([role='option']),
:host([autowidth]) ::slotted(option) {
padding: 0 calc(1em + ${designUnit} * 1.25px + 1px);
}
.listbox[hidden] {
display: none;
}
Expand Down

0 comments on commit ee58184

Please sign in to comment.