Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,14 @@ const Closable = () => <DsAlertBanner
</DsAlertBanner.Body>
<DsAlertBanner.Actions>
<DsButtonV3
color="error"
size="small"
variant="primary"
variant="secondary"
>
Proceed
</DsButtonV3>
<DsButtonV3
size="small"
variant="secondary"
variant="tertiary"
>
Skip
</DsButtonV3>
Expand All @@ -206,9 +205,9 @@ const WithActions = () => <DsAlertBanner open onOpenChange={fn()} inline variant
<DsAlertBanner.Body>You successfully read this important alert message. Choose how you want to proceed.
</DsAlertBanner.Body>
<DsAlertBanner.Actions>
<DsButtonV3 color="error" variant="primary" size="small">Proceed
<DsButtonV3 variant="secondary" size="small">Proceed
</DsButtonV3>
<DsButtonV3 variant="secondary" size="small">Skip
<DsButtonV3 variant="tertiary" size="small">Skip
</DsButtonV3>
</DsAlertBanner.Actions>
</DsAlertBanner>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const showActions = instance.getBoolean('Show Actions');

const closableAttr = closable ? ' closable' : '';
const actionsBlock = showActions
? `\n\t<DsAlertBanner.Actions>\n\t\t<DsButtonV3 variant="secondary" size="small">Action</DsButtonV3>\n\t</DsAlertBanner.Actions>`
? `\n\t<DsAlertBanner.Actions>\n\t\t<DsButtonV3 variant="secondary" size="small">Action</DsButtonV3>\n\t\t<DsButtonV3 variant="tertiary" size="small">Action</DsButtonV3>\n\t</DsAlertBanner.Actions>`
: '';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const showActions = instance.getBoolean('Show Actions');
const closableAttr = closable ? ' closable' : '';
const titleLine = showTitle ? `\n\t<DsAlertBanner.Title>Title</DsAlertBanner.Title>` : '';
const actionsBlock = showActions
? `\n\t<DsAlertBanner.Actions>\n\t\t<DsButtonV3 variant="secondary" size="small">Action</DsButtonV3>\n\t</DsAlertBanner.Actions>`
? `\n\t<DsAlertBanner.Actions>\n\t\t<DsButtonV3 variant="secondary" size="small">Action</DsButtonV3>\n\t\t<DsButtonV3 variant="tertiary" size="small">Action</DsButtonV3>\n\t</DsAlertBanner.Actions>`
: '';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export const Closable: Story = {
};

/**
* Attach follow-up actions with `DsAlertBanner.Actions`. Keep the primary action
* first and limit the count so the banner stays scannable.
* Attach follow-up actions with `DsAlertBanner.Actions`: a small `secondary`
* button for the main action first, then a small `tertiary` button for the other.
*/
export const WithActions: Story = {
args: {
Expand All @@ -179,10 +179,10 @@ export const WithActions: Story = {
You successfully read this important alert message. Choose how you want to proceed.
</DsAlertBanner.Body>
<DsAlertBanner.Actions>
<DsButtonV3 color="error" variant="primary" size="small">
<DsButtonV3 variant="secondary" size="small">
Proceed
</DsButtonV3>
<DsButtonV3 variant="secondary" size="small">
<DsButtonV3 variant="tertiary" size="small">
Skip
</DsButtonV3>
</DsAlertBanner.Actions>
Expand Down