Issue #2505 - Custom checkbox & flexbox order to move checked labels up#2521
Issue #2505 - Custom checkbox & flexbox order to move checked labels up#2521
Conversation
Travis tests have failedHey @Regaddi, 1st Buildnosetestssleep 5npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox` |
|
r? @magsout |
|
| } | ||
|
|
||
| .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.
| .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.