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

pointer-events should be set to none when element is loading #4365

Closed
therealgilles opened this issue May 8, 2022 · 2 comments
Closed

pointer-events should be set to none when element is loading #4365

therealgilles opened this issue May 8, 2022 · 2 comments

Comments

@therealgilles
Copy link

Feature Request

Problem description

When an element (button for instance) is in loading state, its pointer-events should be set to none to avoid interactions.

Proposed solution

See Semantic-Org/Semantic-UI#1744.
I don't think this has been implemented in Semantic-UI-React.

@brianespinosa
Copy link
Member

Hi @therealgilles

The loading prop merely renders a compatible class to pick up styles from Semantic UI, all of which are outside of this React project. If the CSS you are using has been compiled with pointer-events: none; for .ui.button.loading then you will get what you are looking for. There are many ways to set up the styles, or even theme/build your own.

We are not setting the pointer-events: none; style manually to the button in the React bindings, nor are they doing so in the parent SUI project. This is just CSS and class names, all of which are out of scope for these React bindings.

@therealgilles
Copy link
Author

Thanks for your response @brianespinosa and for pointing that out. I should have read more carefully. I am using the default theme but was not seeing the pointer-events: none behavior as I was expecting. It will look into it further. Closing.

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

No branches or pull requests

2 participants