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

Use disabled attribute to disable block mover buttons #588

Merged
merged 2 commits into from
May 1, 2017

Conversation

nylen
Copy link
Member

@nylen nylen commented May 1, 2017

Fixes #575.

Also darkens the color of a disabled block-mover button somewhat... before this change it is almost invisible. There are likely further changes needed here - see #587.

@mtias mtias added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Design Framework Issues related to broader framework topics, especially as it relates to javascript labels May 1, 2017
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Can't speak to design changes, but code looks good 👍

onClick={ onMoveUp }
icon="arrow-up-alt2"
disabled={ !! isFirst }
Copy link
Member

Choose a reason for hiding this comment

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

Lack of types make it not so obvious, but we should (and currently can) assume the incoming value is already a boolean.

@nylen
Copy link
Member Author

nylen commented May 1, 2017

I'm confident in the design aspects here, using disabled and styling based on that is pretty straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants