Skip to content

Conversation

@peterwilsoncc
Copy link
Contributor

Description

Specify the box-sizing in slider thumbs as Firefox does not inherit the box-sizing property on -moz-range-thumb.

How has this been tested?

Visually checked against Chrome implementation.

Screenshots

Firefox on the left, Chome on the right.
Note: disappearing slider is a gif artifact.

thumb-size-fix

Types of changes

Bug fix for visual regression introduced PR #7545.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • [n/a] My code follows the accessibility standards.
  • [n/a] My code has proper inline documentation.

Specify the box-sizing in slider thumbs as Firefox does not inherit the box-sizing property on `-moz-range-thumb`.
@jasmussen jasmussen self-requested a review July 30, 2018 11:52
@jasmussen jasmussen added this to the 3.5 milestone Jul 30, 2018
Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

I can confirm this makes it look and behave the same in Firefox and Chrome. Chrome:

screen shot 2018-07-30 at 13 51 45

Firefox:

screen shot 2018-07-30 at 13 51 39

(Except for that focus style which Firefox adds, but that's fine).

And here's what's in master:

screen shot 2018-07-30 at 13 57 59

Ship it! 3.4 is on the press right now so milestoning this 3.5. Thanks for the PR!

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