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 user-agent default 2px horizontal margins on buttons in Safari #2133

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

36degrees
Copy link
Contributor

Safari’s default user-agent styles for buttons include a 2px margin on the left and right. Explicitly set the left and right margin to 0 rather than relying on the default user-agent styles having a margin of 0 to ensure consistent alignment and spacing across browsers.

Before

Screenshot 2021-02-02 at 09 44 18

After

Screenshot 2021-02-02 at 09 44 35

Safari’s default user-agent styles for buttons include a 2px margin on the left and right. Explicitly set the left and right margin to 0 rather than relying on the default user-agent styles having a margin of 0 to ensure consistent alignment and spacing across browsers.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2133 February 2, 2021 09:45 Inactive
@36degrees 36degrees changed the title Remove UA horizontal margins on buttons in Safari Remove user-agent default 2px horizontal margins on buttons in Safari Feb 2, 2021
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2133 February 2, 2021 09:46 Inactive
@36degrees 36degrees added this to the v3.11.0 milestone Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants