backport shoelace#2007

This commit is contained in:
Cory LaViska
2024-05-10 10:45:53 -04:00
parent d828437316
commit 0b9a0bbb72
3 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ New versions of Web Awesome are released as-needed and generally occur when a cr
- Fixed a bug in `<sl-button-group>` classes [#1974]
- Fixed a bug in `<sl-textarea>` that may throw errors on `disconnectedCallback` in test environments [#1985]
- Fixed a bug in `<sl-color-picker>` that would log a non-passive event listener warning [#2005]
- Fixed a bug in the submenu controller that allowed submenus to go offscreen and not be scrollable [#2001]
## 2.15.0

View File

@@ -144,4 +144,9 @@ export default css`
outline-offset: -1px;
}
}
::slotted(sl-menu) {
max-width: var(--auto-size-available-width) !important;
max-height: var(--auto-size-available-height) !important;
}
`;

View File

@@ -279,6 +279,8 @@ export class SubmenuController implements ReactiveController {
flip-fallback-strategy="best-fit"
skidding="${this.skidding}"
strategy="fixed"
auto-size="vertical"
auto-size-padding="10"
>
<slot name="submenu"></slot>
</wa-popup>