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

Disabled Button with Label leaves Label enabled #1026

Closed
levithomason opened this issue Dec 13, 2016 · 3 comments · Fixed by #1035
Closed

Disabled Button with Label leaves Label enabled #1026

levithomason opened this issue Dec 13, 2016 · 3 comments · Fixed by #1035

Comments

@levithomason
Copy link
Member

Steps

  1. Create a disabled Button with label.

Expected Result

Both the button and the label should be disabled.

Actual Result

Only the button is disabled, the label is not.

This is because the disabled prop is passed to the button child. It should instead be used to create a disabled className for the wrapping div.

Version

v0.62.1

Testcase

http://codepen.io/levithomason/pen/pNxwMb

@tarang9211
Copy link
Contributor

@levithomason can we close this issue if it's fixed?

levithomason pushed a commit to luski/Semantic-UI-React that referenced this issue Jan 24, 2017
levithomason pushed a commit to luski/Semantic-UI-React that referenced this issue Jan 24, 2017
@levithomason
Copy link
Member Author

We can once the PR is merged, #1035.

@tarang9211
Copy link
Contributor

Yea, sorry about this! I meant to comment on another (already closed) issue!

luski added a commit to luski/Semantic-UI-React that referenced this issue Feb 2, 2017
levithomason pushed a commit that referenced this issue Feb 12, 2017
* fix(Button): Disabled Button with Label leaves Label enabled (#1026)

* fix(Button): Disabled Button with Label gets duplicate opacity (#1026)

* fix(Button): Fixed lint error (#1026)

* fix(Button): Test cases for the fixed part (#1026)

* rebase to master

* fix(Button) Disable tab stop for the disabled labeled button (#1026)
harel pushed a commit to harel/Semantic-UI-React that referenced this issue Feb 18, 2017
…c-Org#1035)

* fix(Button): Disabled Button with Label leaves Label enabled (Semantic-Org#1026)

* fix(Button): Disabled Button with Label gets duplicate opacity (Semantic-Org#1026)

* fix(Button): Fixed lint error (Semantic-Org#1026)

* fix(Button): Test cases for the fixed part (Semantic-Org#1026)

* rebase to master

* fix(Button) Disable tab stop for the disabled labeled button (Semantic-Org#1026)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants