From 14dd488a2fbb25cccae7536fd7d32b6e8e82c5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 20 Nov 2024 15:59:00 +0100 Subject: [PATCH] target any slotted element --- packages/uui-action-bar/lib/uui-action-bar.element.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uui-action-bar/lib/uui-action-bar.element.ts b/packages/uui-action-bar/lib/uui-action-bar.element.ts index a82298a64..076f32a6a 100644 --- a/packages/uui-action-bar/lib/uui-action-bar.element.ts +++ b/packages/uui-action-bar/lib/uui-action-bar.element.ts @@ -16,15 +16,15 @@ export class UUIActionBarElement extends UUIButtonGroupElement { --uui-button-padding-right-factor: 0.5; } - ::slotted(uui-button:first-child) { + ::slotted(*:first-child) { --uui-button-border-radius: 50px 0 0 50px; --uui-button-padding-left-factor: 2; } - ::slotted(uui-button:last-child) { + ::slotted(*:last-child) { --uui-button-border-radius: 0 50px 50px 0; --uui-button-padding-right-factor: 2; } - ::slotted(uui-button:first-child:last-child) { + ::slotted(*:first-child:last-child) { --uui-button-border-radius: 50px 50px 50px 50px; --uui-button-padding-left-factor: 2; --uui-button-padding-right-factor: 2;