Button component #372
Replies: 6 comments 5 replies
-
NHS have an off-white background, these are the button styles that they use https://service-manual.nhs.uk/design-system/components/buttons. I wonder if we could borrow some of this for the Home Office styles? |
Beta Was this translation helpful? Give feedback.
-
I don't think I've ever seen the 'affordable' action buttons used anywhere |
Beta Was this translation helpful? Give feedback.
-
I've now gotten to a point in my service where I'll need to implement some secondary buttons. I explored a darker background version @isobelseacombe but I feel it looks a little too much like a button:disbaled style. Currently I have gone for the style used in the HO Design System Figma file. Had to add the following to my app.scss:
I'd suggest these styles are added into the main HO CSS, since I know that others would like to use secondary buttons too. |
Beta Was this translation helpful? Give feedback.
-
We've put together a suggested button component, based on the example above (and reviewing similar examples across the Home Office), you can view a draft: https://645e60090a414800b0b99c78--hods.netlify.app/components?name=Button |
Beta Was this translation helpful? Give feedback.
-
In a design system working group discussion on 18 August 2023, we considered the display as part of the Page component #540 or technically in the Page component but displayed as a distinct page (story) on the Home Office design system website #518. We decided that designers looking for information would be looking for guidance on buttons (or even secondary buttons) rather than within the Page component itself. For the standalone button component we need to explore adding the NotGovUK documentation - to make the 'Props' component work. We should also explore making is specifically about the secondary button as this is the only thing that changes. |
Beta Was this translation helpful? Give feedback.
-
Updated draft to:
|
Beta Was this translation helpful? Give feedback.
-
Current issue
Currently the prototype kit relies on the standard button styles from gov design system.
However, the secondary button style on the gov design system (https://design-system.service.gov.uk/components/button/) uses a light grey background colour which clashes with the home office design system's page grey background colour.
Gov design system secondary button style:
Gov design system secondary button style when used on home office design system background:
Suggested change
My suggestion would be to implement the button styles used in the home office design system, detailed here: https://www.figma.com/file/y90OmHLuhtNuCUOc7jzQlj/Home-Office-design-library-(Roboto)?node-id=4%3A88
Screenshot of button styles detailed in the home office design system, from the link above.
Note:
I'm not sure on the usage and history behind the 'Affordable action' button styles, so I'd leave these for a separate issue for now, unless anybody can make a case for adding these too.
Beta Was this translation helpful? Give feedback.
All reactions