-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Increase radio dimensions to match checkboxes #27377
Conversation
I also updated how the central dot on the active state is styled, so that it no longer needs dedicated rules (inside a media query) to adapt to other dimensions. |
Size Change: +24.3 kB (2%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
Ah, I temporarily swapped the checkbox in the screenshot above to a radio to test as I couldn't remember where we actually used radios hah. It looks like the updated size is not being applied in the visibility options because they are not actually consuming the radio control component. They are however using the radio-control mixin for style. I'll see if I can update that so that all radios are styled correctly, regardless of whether they're utilised in the component or not. |
Very nice, this is working well for me. I'm excited to land this: However I wonder whether the |
Just to make sure before I begin this expedition, which border are you referring to? |
Yes, sorry — the white dot isn't actualy just a div with a border radius and background color. It has a white border as well. The point is, this white border becomes a black border in windows 10 high contrast mode, whereas background colors need to be removed. My plate is full today, but if it's a nightmare hellride for you to test in Windows 10, I'll set aside some time next week to test and push some fixes to your branch. |
Finally had a chance to look at this one, and indeed the problem was as I suspected. The border I referred to is being made opaque, whereas the background is removed. Causing this: I tried making that border 4px, which lands us this: With a full 5px border the dot becomes solid, but then it's also bigger than its dimensions and gets shifted around. Can we make the dot be exactly 8x8px? If yes, then the 4px border inside should work. Otherwise, I think just making it 4px is acceptable. Let me know what you think. |
The dot can indeed be 8x8 :) That latest commit should do the trick. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
The dimensions of radio inputs is currently 16px while checkboxes are 20px. This PR updates radios to match checkboxes.
Before:
After: