-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
[Checkbox][WIP] New features #2010
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
} | ||
|
||
/* Checked */ | ||
.ui.checkbox input:checked ~ .box:after, | ||
.ui.checkbox input:checked ~ label:after { | ||
.ui.checkbox:not(.icon) input:checked ~ .box:after, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we removed the |
||
.ui.checkbox:not(.icon) input:checked ~ label:after { | ||
content: '\e800'; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
@checkboxCheckTop: 0; | ||
@checkboxCheckLeft: 0; | ||
@checkboxCheckSize: @checkboxSize; | ||
@checkboxIconCheckFontSize: 12px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have the |
||
|
||
/* Label */ | ||
@labelFontSize: @relativeMedium; | ||
|
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.
That means, that any icon inside the label (and not supposed to be used for the "check" icon) will vanish.
If we keep this logic, this would mean to define that
icon.checkbox
variations do not support Icons in the label itselfJust a thought (I don't request the following):
What about using the icon font family on
icon.checkbox
instead, so dont have to deal with a separatei
tag? That would probably also fix the sizing issues and is the same approach as the current check icon.Infact, this approach would mean to adjust all icons selectors which would be quite a lot.
A long time back we discussed data attributes "data-icon" which would be independent of the tag and could be reused here (yes, that would be a separate PR and huge breaking change....)