diff --git a/commitlint.config.js b/commitlint.config.js index ac868546..846ffec2 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -16,7 +16,8 @@ module.exports = { 'tooltip', 'progress-indicator', 'checkbox', - 'alert' + 'alert', + 'select' ], ], }, diff --git a/src/components/select/bl-select.css b/src/components/select/bl-select.css index 1b161afc..7592d086 100644 --- a/src/components/select/bl-select.css +++ b/src/components/select/bl-select.css @@ -94,6 +94,18 @@ font-size: var(--bl-font-size-m); } +.dropdown-icon.open { + display: none; +} + +.select-open .dropdown-icon.open { + display: inline-block; +} + +.select-open .dropdown-icon.closed { + display: none; +} + .selected .dropdown-icon { --icon-color: var(--bl-color-secondary); } diff --git a/src/components/select/bl-select.test.ts b/src/components/select/bl-select.test.ts index e5c428a3..f588b524 100644 --- a/src/components/select/bl-select.test.ts +++ b/src/components/select/bl-select.test.ts @@ -27,7 +27,8 @@ describe('bl-select', () => { variant="secondary" > - + +
diff --git a/src/components/select/bl-select.ts b/src/components/select/bl-select.ts index ec0d4d63..968ebbc2 100644 --- a/src/components/select/bl-select.ts +++ b/src/components/select/bl-select.ts @@ -211,8 +211,13 @@ export default class BlSelect extends LitElement {
${removeButton} + +
`;