diff --git a/web/html/src/components/buttons.stories.tsx b/web/html/src/components/buttons.stories.tsx index 4fd236ba73e3..23471d7cf27d 100644 --- a/web/html/src/components/buttons.stories.tsx +++ b/web/html/src/components/buttons.stories.tsx @@ -10,13 +10,9 @@ export default () => {
]; @@ -46,7 +42,7 @@ export default () => { ]; return (
-

Variants

+

Buttons

Different button styling variants tailored for various scenarios as required.

@@ -68,19 +64,20 @@ export default () => {
Small
+
+
Tertiary
+ +
-
Only icon button and button with icon and label
+
Variants
+ + -
-
-
Unstyled
- -
-
+

Choosing a button

@@ -120,9 +117,11 @@ export default () => { - Unstyled + Tertiary - Unstyled icon buttons should only be used in cards, forms, or components where they remain subtle and don't overshadow other buttons. +

Tertiary buttons are designed for less prominent actions and should not compete visually with primary or secondary buttons.

+

Use icon-only tertiary buttons in cards, forms, inline action or components where space is limited.

+

Icon-only buttons should always include a descriptive title attribute or an accessible label (via aria-label or aria-labelledby) to ensure clarity and accessibility for all users.

Example: Inline action buttons for editing an email address in a form.

@@ -138,15 +137,21 @@ export default () => { +
+ +
+ user@suse.com +
+
@@ -166,6 +171,39 @@ export default () => { +
+
+

When grouping buttons aligned to the left, place the primary button at the far left, followed by the button for the next most important action.

+

Example: Form

+ + +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+
); };