Repository navigation
Button #6094
Replies: 63 comments
|
Why are there two different methods used to render a button? The start button type used an |
|
Hi, thanks for getting in touch When used in a form then a |
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
|
We are working on "Add a course" backend portal used by the Providers to add a new course. Think of Gmail inbox with each email being a course with a date, duration, cost etc. Any idea how these buttons would be (if anyone has done this and have an example that would be super helpful) implemented on one page as a GDS design pattern? |
|
I am following GDS and I have to create Secondary and Tertiary buttons for the site, but couldn't find these buttons styles in GDS, if anyone has done please share, it will be helpful. - Thanks |
|
I wonder if button should be wrapped in I've joined a service and our cancel links sit weirdly with buttons - I suspect in most situations (page per thing), you'll want the button to be a block level element - whereas right now it behaves as if it's inline. |
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
|
@vickytnz it's a good point and potentially we can look at improving the design for colourblind people, but it's important to note colour isn't the only thing conveying meaning here - the button text does too. |
|
Some questions around labels when save and return is an option, there seems to be some inconsistency. The design system has:
The GOV.UK Sign In service uses a ‘Continue’ button and ‘Save and complete later’ link in their documentation. |
|
Is there a reason why the hover states for buttons (and links) are so slight compared to the focus states? |
|
We had a low vision user on support today make note of the poor contrast on secondary buttons:
This is following them querying the contrast on the secondary button and me making a note of the bottom border as a visual delimiter. There have been a couple of mentions in this issue to the secondary button not being great for low vision users even with the bottom border. At present it technically doesn't fail 1.4.11 but it still might not be 100% accessible. |
|
It looks like the js which handles links which are styled as buttons (with the I've written up some testing: https://liptrot.org/posts/links_buttons_roles_and_behaviours/ |
Very good point @adamliptrot-oc We'd love a contribution if you'd like to open a pull request? |
|
What is the justification for setting I am asking this because we are discussing the removal of |
|
We've had lots of trouble with users submitting forms twice on govuk-design-system projects and found that the "preventDoubleClick" setting is insufficient, because the button turns back on again after 1 second. Users who are still waiting for the form to submit will then click the button again at that point. So we are not using the "preventDoubleClick" setting but instead have custom js code that permanently disables the form submit buttons after first click, regardless of how long the actual form submit takes. This has very much reduced the number of form double-submits we get, and we haven't had any user complaints about it. Why was the 1 second timeout chosen? Would you consider changing the "preventDoubleClick" setting from 1 sec to permanent? ... and, if it were up to me, this would be on by default, rather than opt-in. What service actually wants double form submissions? |
|
With the new guidance on COTS systems, does anyone have any thoughts on buttons in services linking to external non-gov platforms? For example linking from a Gov.UK service for paying a fine to an external payment provider (not Gov.UK Pay) or to a non-GOV.uk platform like a service support portal (e.g. ServiceNow) Also interested in anyones thoughts on if that service should attempt to imitate the design system to maintain citizen trust... or use its own design system (still running research on that one). |
|
The page your type scale screenshot is from explains that the new type scale is opt in:
This means the default button is using the old scale. It's probably best to use the new one, in which case the text stays at 19px on mobile. |
|
Cheers @joelanman, yes I was consued as the page had the old and new type scale and the button was using the old one not the new one. By the way would be great to have a way to change the version of the design system on the documentation page. Example
|
We're doing some investigations into Buttons 👋🏻We'd love to get your help reviewing and playing into our work on improving buttons. Join our Github discussions: |
|
I was wondering if anyone can share insight on the rationale of blue buttons on the GOV.UK Chat design? (Though I appreciate the design might have changed by now) |
|
In version 6.0 of GOV.UK Frontend we updated the colours within the button component to align with the updated GOV.UK colour palette. The new palette is updated on the GOV.UK Design System website (styles > colour) |







Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Use this issue to discuss the button component from the GOV.UK Design System.
All reactions