-
Notifications
You must be signed in to change notification settings - Fork 203
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
Issue #2505 - Custom checkbox & flexbox order to move checked labels up #2521
Conversation
Travis tests have failedHey @Regaddi, 1st Buildnosetests
sleep 5
npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox`
|
r? @magsout |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Regaddi. The UX does what I wanted.
Some questions about accessibility
} | ||
|
||
.label-editor-list-item-checkbox:checked + .label-editor-list-item::before { | ||
content: "︎☑︎"; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -70,8 +85,15 @@ | |||
|
|||
/* checkbox */ | |||
.label-editor-list-item-checkbox { | |||
margin: 0; | |||
padding: 0; | |||
display: none; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@magsout order is tied to the checked state of the checkboxes. It's a CSS-only solution :) |
Tests are green, are we ready to merge @magsout? |
@miketaylr yes we can 👍 Thanks @Regaddi |
cool, thanks @magsout |
This PR fixes issue #2505
Proposed PR background
This will move the checked labels in the label editor to the top of the list.
I introduced some custom styling to achieve this, since I can't reference a parent element in CSS, e.g. to select a label which wraps around the checkbox input element.