Closed seanprivett closed 4 months ago
The GOV.UK search component: https://components.publishing.service.gov.uk/component-guide/search
This component package is not intended for use outside of GOV.UK, but the source is here:
keyboard shortcut?
Also add to glossary search. This should reset the page to all glossary terms
This behaviour actually comes from type="search"
It's then customised on GOV.UK with
&::-webkit-search-cancel-button {
-webkit-appearance: none;
background-image: url("govuk_publishing_components/icon-close.svg");
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
height: 20px;
margin-left: 0;
margin-right: 0;
width: 20px;
}
}
We have icon-close-cross-black in the MOJ design system, so we could use that.
Originally posted by @alex-vonfeldmann in #423