Skip to content

Commit

Permalink
SearchBox: Provide a 'secondary' style
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ac-martin committed Jan 5, 2025
1 parent b56afb5 commit 20f8ae5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/search-box/assets/SearchBox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
transform: scale(0.5);
}

&--hods {
&--secondary {
.not-govuk-standalone-input__button {
background-color: govuk-colour("light-grey");
color: govuk-colour("black");
Expand Down
11 changes: 11 additions & 0 deletions components/search-box/spec/SearchBox.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,16 @@ Currently errors are visually hidden, so it is best to avoid them. They will how
</Preview>


### Secondary button

A search box with a more subtle, grey button, similar to the 'secondary' button style.

<Preview>
<Story name="Secondary">
<SearchBox name="q" classModifiers="secondary" />
</Story>
</Preview>


[Search component]: https://components.publishing.service.gov.uk/component-guide/search
[GOV.UK Component Guide]: https://components.publishing.service.gov.uk/component-guide

1 comment on commit 20f8ae5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please # to comment.