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

Remove unused colour definitions #525

Merged
merged 4 commits into from
Feb 15, 2018
Merged

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Feb 13, 2018

There are a load of applied colour definitions that are unused within Frontend.

There's a few things to consider here:

  • The panel colour was used by the previous / next component which has been temporarily removed, but it would probably make more sense for that component to reference $govuk-grey-4 directly anyway.
  • The colour page currently references a number of these variables, so we'd need to update that page as well (/cc @joelanman) to remove:
    • $govuk-panel-colour
    • $govuk-highlight-colour
    • $govuk-page-colour

This has been done in a few commits so that you can clearly see which variables are being removed amidst the re-structure.

Thoughts?

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-525 February 13, 2018 15:35 Inactive
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

If these variables were declared as a public api this would be a breaking change, something to think about when we work on the versioning.

36degrees added a commit to alphagov/govuk-design-system that referenced this pull request Feb 15, 2018
These colours are not actually used in Frontend and their definitions are being removed in the next version. As the only colour left in this section is in fact a border, not a background, rename the section.

alphagov/govuk-frontend#525
@36degrees 36degrees changed the title [WIP / Discuss] Remove unused colour definitions Remove unused colour definitions Feb 15, 2018
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-525 February 15, 2018 10:44 Inactive
@36degrees
Copy link
Contributor Author

@NickColley happy with the changelog entry?

None of these defined ‘applied’ colours are actually being used anywhere, so let’s remove them.

The panel colour was used by the previous / next component which has been temporarily removed, but it would probably make more sense for that component to reference $govuk-grey-4 directly anyway.
Better structure and document the applied colour settings file to make it clearer what each thing does.
Rename govuk-button-colour-darken-15 to govuk-button-shadow-colour to better communicate how it is used, and decouple the name from the value. Currently to change the button shadow colour we would also have to change the name of the variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants