Skip to content

Commit

Permalink
Merge pull request #856 from alphagov/warning-icon-select
Browse files Browse the repository at this point in the history
Make the warning icon un-selectable
  • Loading branch information
36degrees authored Jul 2, 2018
2 parents 8136741 + 6bdc9f9 commit 3a869fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
- Fixes radio and checkbox labels extending full width of page
([PR #821](https://github.com/alphagov/govuk-frontend/pull/821))

- Prevent the exclamation mark in the warning text component from being
selectable, which also excludes it when it is copied as part of a wider body
of text
([PR #856](https://github.com/alphagov/govuk-frontend/pull/856))


🏠 Internal:

- Fix Design System url in package READMEs and review app
Expand Down
4 changes: 4 additions & 0 deletions src/components/warning-text/_warning-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
line-height: 35px;

text-align: center;

// Prevent the exclamation mark from being included when the warning text
// is copied, for example.
user-select: none;
}

.govuk-warning-text__text {
Expand Down

0 comments on commit 3a869fc

Please sign in to comment.