Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up GOV.UK logo hover and focus states
Address two issues with the hover and focus states for the GOV.UK logo (including product name, when present): 1. When the header includes a product name, the homepage link’s underline (on hover) and the focus state take up an additional 10px on the right hand side, because of the 10px right padding on `govuk-header__product-name`. This padding is there to ensure there is a gap left between the product name and the menu button [1]. Remove it, and add a 10px margin to `govuk-header__link--homepage` instead which achieves the same result but without adding an additional 10px to the hover and focus states. 2. When the header does not include a product name, the homepage link’s underline (on hover) and the focus state take up an additional 5px on the right hand side, because of a 5px margin on `govuk-header__logotype`. This margin has been present since the component was added to GOV.UK Frontend, but I believe it’s to ensure there’s a space between GOV.UK and a product name. Remove this margin in favour of a 5px left margin on the product name, so that the margin is only included when there is a product name to show. [1]: df413cf
- Loading branch information