Repository navigation
Inset text #5993
Replies: 22 comments
|
@timpaul I thought this component was deprecated. alphagov/govuk_elements#586 Or at least a rethink of how inset text and warning text worked together. |
|
It's become clear since then that it is being used on many services, often effectively. In almost every round of research on the Design System as least one users asks us where it's gone. So we think we need something, but we also need clear guidance and good examples. And yes, it needs to be considered alongside warning text and pull quotes. |
|
is there a reason why this component's border is sometimes blue? @timpaul |
|
Hi @EmmaJem , have you got any examples of the component with a blue border? |
Hi @vanitabarrett here's and example from GOV.UK Passport replacement form: |
|
Thanks for the example @EmmaJem . That looks like a custom component (or some overridden styles) added by a department, rather than something in the design system. The style and position of the blue version is a little strange, it looks a bit more like the "alert" or "notification banner" that other services have built and which the design system team are in the process of building. But the content is perhaps more suited to hint text on the input. The inset text component in the design system is grey, and can be previewed here: https://design-system.service.gov.uk/components/inset-text/ |
|
@vanitabarrett thank you very much for your help! I agree It was a little confusing and didn't seem to fit! Thank you :) |
|
Quite a few services have alternate / additional inset styles - I do think there's a bit of an unmet need here. |
|
I'm looking at updating the styling of our inset text component using one of the colours from our colour palette. The grey in the GDS inset text component fails the contrast checker for graphical objects and user Interface components, using https://webaim.org/resources/contrastchecker/ Do the GDS team not see this as an issue for this type of component? |
|
Hi @MhariMcNaught, We don't consider the contrast of the border to be an issue in this context, as we don't consider it to be a 'user interface component' nor a 'graphical object' necessary to understand the content, which is what WCAG criterion 1.4.11 applies to. Additionally, if a user is unable to clearly see the border due to contrast issues, the content still appears visually inset. Hope that helps! |
|
@querkmachine that makes sense to me, thank you! |
|
My thoughts turn (as they do so often) to asking myself: can this interaction design suggestion be improved by thinking about the content design? And I think maybe it can be. Why not put change the "two levels of headline PLUS inset text" into one thing, so it reads: We hold this information about you: Employment with ABC Digital Ltd starting on 23 September 2021 If this information is incorrect, please speak to the employer. I'd prefer it to say both the start date and the end date, but that information wasn't in the example. You may also worry that I haven't included the phrase PAYE employment for 6 April 2021 to 5 April 2022. I expect that you do know the user need for giving so much prominence to the tax year that the employment happens to fall into, but it wasn't at all clear from the example so I left it out. Let me know whether I've missed the point. |
|
@beccagorton-1 Having a 'box to type into' is a very compelling feature on the page - my eyetracking studies (years ago when we still did that sort of thing, admittedly) showed people's eyes going directly to the boxes. (An aside: The only thing that can compete as an attractive feature on a page is the eyes of a person in a photograph looking out at the reader, but I'm not recommending that in this context due to the difficulties of representation here). There is an another advantage of giving people boxes to type into: the box is a standard component in the design system. You might very reasonably point out that you'd have to think about what to do with the answers that people typed in. True. To which I'd ask: What do you expect them to do with the answers to your prompts at the moment? |
|
Hi @cjforms! I'm really glad you mentioned it, as this is exactly what we're testing right now :) In terms of the prompt, there will be situations where the box might not be quite right (we're currently testing variations of content within the prompts as well) and we've learned from users that they don't want the box on every page, but are hapy to have prompts on every page. We've also found that the prompts make the course materials a little more engaging, as previously it was all body text with the original inset text component appearing sparingly. |
|
The govuk publishing components have a component called intervention. That looks like it derived from the inset text component and changed some colours.
|
|
We've recently used a version of this in a service for recruiters to check a teacher's record. One the main things they're looking out for is if the teacher has any 'restrictions' such as a misconduct hearing that has prohibited them from teaching. They won't often see them, but if there is one, we use the inset text component in red. We didn't use warning text because it isn't always a legal warning, depending on the education setting and restriction type, and it doesn't lend itself well to multi-line content. Ours has a heading and some body content. We didn't use a notification banner because this is more typical for a service update or flash message. It was also quite large and bordered, we wanted to start with something simpler. We used red because it's an alert, we don't use this colour for anything else and it's familiar to users from something similar in the legacy service. It's worked with a couple of people with deuteranopia (red-green) because there are no other prominent components or colours nearby, and we've made an assumption that for greyscale viewers it would appear similar to the component's standard state. It's tested very well in a couple of rounds of research. Every participant noticed it. Nearly every participant:
Quotes included:
We talked about this in a service assessment and was assessed as met the standards. It's gone into public beta, so we'll be interested to see if any more feedback comes up. |
|
@nick-wall thanks for feeding that back, one point - it should probably use the standard govuk red, at a glance it looks different: |
Good point - the screenshot is using 'govuk-red' in the Figma design system, but is actually slightly darker in production |
|
The component page says that I can use this component for quotes. When doing so, do I need to add |
|
How many insert text can we use on the page? |






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Inset text
Use this issue to discuss this pattern in the GOV.UK Design System.
All reactions