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

Fix stray pixels on focused inputs such as checkboxes and radios #44

Merged
merged 5 commits into from Dec 7, 2018

Conversation

alexgleason
Copy link
Contributor

@alexgleason alexgleason commented Nov 30, 2018

Closes #39

screenshot from 2018-11-30 11 59 00

You can see there are stray pixels between "Yes" and "No".

This also happens for the checkbox:

screenshot from 2018-11-30 12 02 28

This PR fixes the issue by setting outline: 0 on all inputs. By default, most browsers will add an outline to input:focused elements. By setting outline: 0, we are overriding that behavior to remove the outline.

External links:

@BcRikko BcRikko self-requested a review December 1, 2018 00:03
@BcRikko
Copy link
Member

BcRikko commented Dec 1, 2018

Thanks 🙇

outline is used in input fields. so I don't want to change to input { outline: 0 } 😢
outline

Are you pointing out that the color of .radio and .checkbox are gray color? 🤔
If so, It's intentionally changing. ↓
https://github.com/BcRikko/NES.css/blob/master/scss/elements/checkboxes.scss#L3-L47
https://github.com/BcRikko/NES.css/blob/master/scss/elements/radios.scss#L3-L21

@BcRikko
Copy link
Member

BcRikko commented Dec 1, 2018

I'm sorry, I misunderstood 🙇🙇🙇
You pointed out below.
fix_stray_pixels_on_focused_inputs_such_as_checkboxes_and_radios_by_alexgleason_ pull_request__44 _bcrikko_nes_css

@trezy trezy changed the base branch from master to develop December 6, 2018 21:40
@trezy
Copy link
Member

trezy commented Dec 7, 2018

Hey @alexgleason, make sure to merge the latest version of the develop branch so that our CI will run the required checks for this PR. 😉

@trezy trezy added the waiting - contributor Waiting for the contributor to address some situations label Dec 7, 2018
@abdallahalsamman abdallahalsamman removed the waiting - contributor Waiting for the contributor to address some situations label Dec 7, 2018
@abdallahalsamman
Copy link
Member

abdallahalsamman commented Dec 7, 2018

I can't reproduce the stray pixels(Browser: Firefox 62, Branch: develop)

radiofirefox

@abdallahalsamman
Copy link
Member

abdallahalsamman commented Dec 7, 2018

Reproducible with FF 63

EDIT: Reproducible on FF63 for Ubuntu and not OSX 🤧

Copy link
Member

@abdallahalsamman abdallahalsamman left a comment

Choose a reason for hiding this comment

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

LGTM

Tested on ubuntu FF 63

@abdallahalsamman abdallahalsamman merged commit 162391f into nostalgic-css:develop Dec 7, 2018
@BcRikko
Copy link
Member

BcRikko commented Dec 8, 2018

This change is not good 🙈
because when focusing on input field, the outline disappears. 😢

this PR expect
pr expect

@abdallahalsamman
Copy link
Member

@BcRikko I'll push a PR to limit the outline: 0 to radios and checkboxes only 🙌

@BcRikko
Copy link
Member

BcRikko commented Dec 18, 2018

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Radios has stray pixels in Firefox
4 participants