diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-dark-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-dark-linux.png index cddb5f67c..13cc50b63 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-dark-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-dark-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3f24ad8a5f32c127c3e171c4b8e527df66609175bab0a7b5ca24b88257a889e2 -size 28384 +oid sha256:dab25dfd0b1911a9cb7b606ccbf4e14d24c11a15c996f4ab146a2133eb8b0e3f +size 33554 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-light-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-light-linux.png index 6b3e45060..7e4dd7649 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-light-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups-element-examples-chromium-light-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1e4d8da30cc8fe9f204092438f62e63a3745af2377bbe180267d39718c3c8e35 -size 34136 +oid sha256:80286b56e334f8d51188a57b964f4504d1882f22638928909db815eb9e86eca6 +size 39376 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups.yaml b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups.yaml index 2ca04075d..960d39628 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups.yaml +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--button-groups.yaml @@ -23,6 +23,19 @@ - button "Start" - button "Middle" - button "End" +- heading "With icons" [level=4] +- group "Primary group with icon and text": + - button "Edit" + - button "Copy" + - button "Delete" +- group "Secondary group with icon and text": + - button "Edit" + - button "Copy" + - button "Delete" +- group "Tertiary group with icon and text": + - button "Edit" + - button "Copy" + - button "Delete" - group "Primary group": - button "Edit" - button "Copy" @@ -35,16 +48,20 @@ - button "Edit" - button "Copy" - button "Delete" +- group "Ghost group": + - button "Edit" + - button "Copy" + - button "Delete" - heading "Sizing" [level=4] -- group "Large group": +- group "Large group with icon and text": - button "Large" - button "Group" - button "Size" -- group "Default group": +- group "Default group with icon and text": - button "Default" - button "Group" - button "Size" -- group "Small group": +- group "Small group with icon and text": - button "Small" - button "Group" - button "Size" @@ -60,15 +77,15 @@ - button "Small" - button "Group" - button "Size" -- group "Large group": - - button "Large" - - button "Group" - - button "Size" -- group "Default group": - - button "Default" - - button "Group" - - button "Size" -- group "Small group": - - button "Small" - - button "Group" - - button "Size" \ No newline at end of file +- group "Large icon group": + - button "Edit" + - button "Copy" + - button "Delete" +- group "Default icon group": + - button "Edit" + - button "Copy" + - button "Delete" +- group "Small icon group": + - button "Edit" + - button "Copy" + - button "Delete" \ No newline at end of file diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-dark-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-dark-linux.png index 5af427bfe..8e2845da5 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-dark-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-dark-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:818b4ca102f636df3edb111494cf73eba171ff6cdcf1d983953b131a38b69f59 -size 58168 +oid sha256:99a1ba7bac55ccdcccdeb9d77ba3874acd7420682a571b2c5edd62c3cb7f5ee9 +size 58023 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-light-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-light-linux.png index 3a1c4e165..9b819f058 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-light-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--buttons-element-examples-chromium-light-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2abe80bb54f546ac9aa3c83e596810ea37506c5e29a841df9e19f4bdf861a2cc -size 61528 +oid sha256:55052e2a17ccc4ed3bf0fe722549b063d3afa10428734c4c5259579c92b9a515 +size 61339 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-dark-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-dark-linux.png index 615e4eaea..6dd4063ec 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-dark-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-dark-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e47780f1d62841758b43a670b7ff8a78118d8e1dfda1e1e87402a57ad95eb7ac -size 22194 +oid sha256:3c5bdaa7c2759dd1a2c064e96d029ee2744bc22d27001f25891d54acf74e2ef9 +size 34984 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-light-linux.png b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-light-linux.png index af33bbe60..20121eaec 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-light-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons-element-examples-chromium-light-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:43ab07bf96fa6f42958a55823215deb51ec9ac4d9b7e3c68998304d5adddaf2f -size 23270 +oid sha256:28f0c7547b2fd08e03f3c409eb870a75bb7d7d91f5affead2a03c334be2fffa2 +size 37262 diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons.yaml b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons.yaml index 6eb0c0992..f7ecb6614 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons.yaml +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--selection-buttons.yaml @@ -1,4 +1,3 @@ -- heading "Single-select" [level=4] - group "Basic radio toggle button group": - radio "Day" [checked] - text: "" @@ -6,17 +5,33 @@ - text: "" - radio "Month" - text: "" -- group "Radio toggle button group with icon": +- group "Temperature mode selection": - radio "Comfort" [checked] - text: "" - radio "Pre-comfort" - text: "" - radio "Economy" - text: "" -- group "Layout selection toggle": +- group "Layout selection": - radio "One pane" [checked] - radio "Two panes" - radio "Three panes" +- heading "Multi-select" [level=4] +- group "Email status filter": + - checkbox "Read" [checked] + - text: "" + - checkbox "Unread" + - text: "" + - checkbox "Archived" [checked] + - text: "" + - checkbox "Deleted" + - text: "" +- group "Category filter": + - checkbox "Garden" [checked] + - checkbox "Mobile" + - checkbox "Cloud" [checked] + - checkbox "AI" + - checkbox "Network" - heading "Sizing" [level=4] - group "Basic radio toggle button group": - radio "Large" [checked] @@ -39,11 +54,36 @@ - text: "" - radio "Size" - text: "" -- heading "Multi-select" [level=4] -- group "Basic checkbox toggle button group": - - checkbox "€" +- group "Basic radio toggle button group": + - radio "Large" [checked] + - text: "" + - radio "Group" - text: "" - - checkbox "€€" + - radio "Size" + - text: "" +- group "Basic radio toggle button group": + - radio "Default" [checked] + - text: "" + - radio "Group" + - text: "" + - radio "Size" + - text: "" +- group "Basic radio toggle button group": + - radio "Small" [checked] + - text: "" + - radio "Group" + - text: "" + - radio "Size" - text: "" - - checkbox "€€€" - - text: "" \ No newline at end of file +- group "Climate control mode": + - radio "Heating" + - radio "Water" + - radio "Cooling" +- group "Climate control mode": + - radio "Heating" + - radio "Water" + - radio "Cooling" +- group "Climate control mode": + - radio "Heating" + - radio "Water" + - radio "Cooling" \ No newline at end of file diff --git a/playwright/snapshots/static.spec.ts-snapshots/buttons--split-button.yaml b/playwright/snapshots/static.spec.ts-snapshots/buttons--split-button.yaml index ea5635378..de1f2cbad 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/buttons--split-button.yaml +++ b/playwright/snapshots/static.spec.ts-snapshots/buttons--split-button.yaml @@ -1,8 +1,8 @@ - group "Split button primary": - - button " Button" + - button "Button" - button "Dropdown toggle" - group "Split button secondary": - - button " Button" + - button "Button" - button "Dropdown toggle" - group "Split button primary label only": - button "Button" diff --git a/projects/element-theme/src/styles/bootstrap/_button-group.scss b/projects/element-theme/src/styles/bootstrap/_button-group.scss index 41b267ed8..d4769d76e 100644 --- a/projects/element-theme/src/styles/bootstrap/_button-group.scss +++ b/projects/element-theme/src/styles/bootstrap/_button-group.scss @@ -76,6 +76,10 @@ $btn-size-sm: 24px !default; &.btn-lg { inline-size: $btn-size-lg; } + + &.btn-sm { + inline-size: $btn-size-sm; + } } // Dropdown toggle styling for split buttons diff --git a/src/app/examples/buttons/button-groups.html b/src/app/examples/buttons/button-groups.html index e8ec48a10..989df6595 100644 --- a/src/app/examples/buttons/button-groups.html +++ b/src/app/examples/buttons/button-groups.html @@ -40,62 +40,149 @@ +
< 576px.modal-footer