Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the warning icon un-selectable #856

Merged
merged 2 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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