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(input): set cursor to not-allowed when disabled #101

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

Leotheluck
Copy link
Contributor

Component input should have cursor to not-allowed when disabled, and pointer-events shouldn't be accessible (in this case, the native input has disabled attribute which disables native pointer-events, prioritizing cursor in the styling)

@Leotheluck Leotheluck requested a review from a team as a code owner July 17, 2023 15:44
Copy link
Contributor

@dpellier dpellier left a comment

Choose a reason for hiding this comment

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

You have included generated file from your local remains of form-field.
Please clean up by deleting all the form-field related files on this branch, then rebase again on master, only the osds-input.scss file change should remain.

@Leotheluck Leotheluck force-pushed the fix/input-pointer-events branch from 8befdd3 to 2996012 Compare July 18, 2023 12:50
@include osds-input-on-selected-host() {
opacity: .5;
cursor: not-allowed;
pointer-events: none;
Copy link
Contributor

@dpellier dpellier Jul 18, 2023

Choose a reason for hiding this comment

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

is this what has been asked for? cause this now allows user to select content on disabled input which was not doable before

Copy link
Contributor Author

Choose a reason for hiding this comment

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

goal was to display cursor as not allowed but not be able to interact with the input (which is enabled by the native disabled attribute of it)

@dpellier dpellier merged commit 43ee887 into master Jul 19, 2023
@dpellier dpellier deleted the fix/input-pointer-events branch July 19, 2023 07:19
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