Skip to content

fix(#3743): tertiary background colour fix on mobile#3768

Merged
chrisolsen merged 4 commits intodevfrom
mxsoco/3743-tertiary-button-mobile-background
Apr 15, 2026
Merged

fix(#3743): tertiary background colour fix on mobile#3768
chrisolsen merged 4 commits intodevfrom
mxsoco/3743-tertiary-button-mobile-background

Conversation

@mxsoco
Copy link
Copy Markdown
Collaborator

@mxsoco mxsoco commented Apr 7, 2026

Before (the change)

The background colour still exists on mobile for the tertiary button. Same with the inverse, but only on mobile.

image

After (the change)

Removed 4 lines that bring in the background. Including tokens:

  • --goa-button-tertiary-color-bg-mobile
  • --goa-button-tertiary-color-bg
image

Steps needed to test

  • Ensure background is transparent for tertiary buttons on mobile.
  • Check the same for the inverse variant.

@mxsoco mxsoco linked an issue Apr 7, 2026 that may be closed by this pull request
@mxsoco mxsoco requested review from chrisolsen and twjeffery April 7, 2026 19:38
@chrisolsen
Copy link
Copy Markdown
Collaborator

If this is as per design then it looks good. @twjeffery ?

Copy link
Copy Markdown
Collaborator

@vanessatran-ddi vanessatran-ddi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should fix this on this PR, or maybe we can do in a separate one: When I focus on the button I see this, it is difficult to read the text and I think the text color should be white?
cc @twjeffery
Image

@mxsoco mxsoco force-pushed the mxsoco/3743-tertiary-button-mobile-background branch from 9f8b660 to 4441791 Compare April 8, 2026 17:13
@mxsoco mxsoco force-pushed the mxsoco/3743-tertiary-button-mobile-background branch from 4009dbd to e3e9c76 Compare April 8, 2026 17:35
@bdfranck bdfranck self-requested a review April 9, 2026 15:37
Copy link
Copy Markdown
Collaborator

@bdfranck bdfranck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can update and add tokens instead of removing them to prevent future issues.

width: 100%;
display: flex;
}
button.tertiary {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update the token value instead of removing it. Removing it could lead to frustrated teams who update the -goa-button-tertiary-color-bg-mobile value and find that nothing happens.

background-color: var(--goa-button-tertiary-color-bg-mobile) !important;
}
button.tertiary:hover {
background-color: var(--goa-color-greyscale-200) !important;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a new token with the value we want instead of removing the CSS here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I update --goa-button-tertiary-color-bg-mobile to just be transparent, could that just replace --goa-color-greyscale-200 here?

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for benji-docs-previews ready!

Name Link
🔨 Latest commit a889fe4
🔍 Latest deploy log https://app.netlify.com/projects/benji-docs-previews/deploys/69e00eb69d1a7f000811c476
😎 Deploy Preview https://deploy-preview-3768--benji-docs-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mxsoco mxsoco requested a review from bdfranck April 15, 2026 15:07
Copy link
Copy Markdown
Collaborator

@bdfranck bdfranck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the latest changes with tokens from (https://github.com/GovAlta/design-tokens/pull/153/changes)...

mobile-tertiary-buttons-fixed.mp4

I see the tertiary button background is transparent on mobile. Looks good to me! 👍

@chrisolsen chrisolsen merged commit 99bc15e into dev Apr 15, 2026
8 checks passed
@chrisolsen chrisolsen deleted the mxsoco/3743-tertiary-button-mobile-background branch April 15, 2026 22:25
@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.0.0-dev.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.0.0-dev.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 7.0.0-dev.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chrisolsen
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.0-dev.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button: tertiary background colour should not change on mobile

4 participants