Styles fixes (#2238)

* fix invalid rule

* fixes #2107
This commit is contained in:
Cory LaViska
2024-10-28 14:05:32 -04:00
committed by GitHub
parent fa716029a7
commit 73c469ff45
3 changed files with 3 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Added support for <kbd>Enter</kbd> to `<sl-split-panel>` to align with ARIA APG's [window splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) [#2234]
- Fixed a bug in `<sl-carousel>` that caused the navigation icons to be reversed
- Fixed a bug in `<sl-select>` that prevented label changes in `<sl-option>` from updating the controller [#1971]
- Fixed a bug in `<sl-textarea>` that caused a console warning in Firefox when typing [#2107]
- Improved performance of `<sl-range>` by skipping positioning logic when tooltip isn't shown [#2064]
## 2.18.0

View File

@@ -31,11 +31,8 @@ export default css`
outline: transparent;
}
:host(:focus-visible):not([disabled]) {
color: var(--sl-color-primary-600);
}
:host(:focus-visible) {
color: var(--sl-color-primary-600);
outline: var(--sl-focus-ring);
outline-offset: calc(-1 * var(--sl-focus-ring-width) - var(--sl-focus-ring-offset));
}

View File

@@ -202,7 +202,7 @@ export default class SlTextarea extends ShoelaceElement implements ShoelaceFormC
this.input.style.height = 'auto';
this.input.style.height = `${this.input.scrollHeight}px`;
} else {
(this.input.style.height as string | undefined) = undefined;
this.input.style.height = '';
}
}