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(core): input and textarea borders on focus #208

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

rabelloo
Copy link
Contributor

Purpose

Closes #207

Approach

Refactors their styles to be shared in a mixin as-text-input.
That mixin also fixes the border specificity issue,
by applying it between :hover and .-invalid,
which requires a stylelint line disable.

Testing

Visually check the borders on focus.

Risks

None.

@rabelloo rabelloo requested a review from josokinas January 20, 2021 12:44
@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2021

🎊 PR Preview a1ff6ea has been successfully built and deployed to https://onfido-castor-preview-pr-208.surge.sh

🕐 Build time: 116.702s

🤖 By surge-preview

@rabelloo rabelloo force-pushed the fix/input-textarea-focus-border branch from 73a2327 to ba60787 Compare January 20, 2021 12:47
packages/core/src/mixins/as-text-input.scss Show resolved Hide resolved
packages/core/src/mixins/as-text-input.scss Outdated Show resolved Hide resolved
packages/core/src/mixins/as-text-input.scss Outdated Show resolved Hide resolved
Refactors their styles to be shared in a mixin .
That mixin also fixes the border specificity issue,
by applying it between  and ,
which requires a  line disable.
@rabelloo rabelloo force-pushed the fix/input-textarea-focus-border branch from 07872db to a1ff6ea Compare January 20, 2021 13:12
@rabelloo rabelloo merged commit e5c0829 into main Jan 20, 2021
@rabelloo rabelloo deleted the fix/input-textarea-focus-border branch January 20, 2021 13:17
@rabelloo rabelloo self-assigned this Jan 20, 2021
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.

Focus border color should override hover color
2 participants