-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/pfe 1828 update radio checkmarks dg #1017
base: develop
Are you sure you want to change the base?
Changes from 3 commits
28a1b40
f1e6955
598a072
dc09130
b5c4e53
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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,9 +6,117 @@ | |||||||||
|
||||||||||
input[type="radio"] { | ||||||||||
+ label { | ||||||||||
|
||||||||||
&:before { | ||||||||||
border: 2px solid @radiobutton-border; | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
&:is(:hover, :focus-visible) + label:before { | ||||||||||
box-shadow: 0 0 0 0.375rem var(--gray); | ||||||||||
} | ||||||||||
|
||||||||||
&:checked + label:before { | ||||||||||
background-position: center; | ||||||||||
background-image: url("../../../icons/payex/circlepx.svg"); | ||||||||||
} | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.radio input[type=radio][disabled]:checked+label:before { | ||||||||||
background-image: url("../../../icons/payex/circlepx_disabled.svg"); | ||||||||||
} | ||||||||||
|
||||||||||
.checkmark { | ||||||||||
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. try adding So either by adding the |
||||||||||
|
||||||||||
label { | ||||||||||
border: 1px solid var(--gray); | ||||||||||
outline: none !important; | ||||||||||
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. why removing outline to replace it by borders ? If the change is only to achieve a change of color then I think you can achieve if more easily by only modifying the outline color:
Suggested change
this goes for teh rest of the file, everywhere |
||||||||||
color: var(--light-black); | ||||||||||
|
||||||||||
.radio.checkmark label .checkmark-icon { | ||||||||||
background-color: var(--brand-secondary); | ||||||||||
} | ||||||||||
|
||||||||||
&:hover { | ||||||||||
border: 1px solid var(--gray) !important; | ||||||||||
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. if only the color is modified on hover, then use a e.g.
OR if you've switched back to outline:
BUT beyond that: |
||||||||||
background-color: var(--light-gray) !important; | ||||||||||
color: var(--brand-secondary) !important; | ||||||||||
Comment on lines
+42
to
+43
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.
Suggested change
|
||||||||||
|
||||||||||
.checkmark-icon, | ||||||||||
> i { | ||||||||||
background-color: var(--brand-secondary) !important; | ||||||||||
} | ||||||||||
|
||||||||||
.checkmark-icon::before, .checkmark label:hover > i::before { | ||||||||||
border-color: var(--light-gray) !important; | ||||||||||
} | ||||||||||
|
||||||||||
.checkmark-icon::before, | ||||||||||
.checkmark label:hover > i::before { | ||||||||||
border-color: var(--light-gray) !important; | ||||||||||
} | ||||||||||
} | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:checked + label:hover { | ||||||||||
border: 1px solid var(--brand-secondary); | ||||||||||
outline: none !important; | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:checked + label { | ||||||||||
border: 1px solid var(--brand-secondary); | ||||||||||
outline: 3px solid var(--brand-secondary) !important; | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:disabled:checked + label { | ||||||||||
color: var(--white); | ||||||||||
border: 1px solid var(--gray) !important; | ||||||||||
outline: none !important; | ||||||||||
|
||||||||||
.checkmark-icon, | ||||||||||
> i { | ||||||||||
background-color: var(--white); | ||||||||||
} | ||||||||||
.checkmark-icon::before, .checkmark label:disabled > i::before { | ||||||||||
border-color: var(--gray) !important; | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:disabled + label:hover { | ||||||||||
color: var(--white) !important; | ||||||||||
border: 1px solid var(--gray) !important; | ||||||||||
outline: none !important; | ||||||||||
background-color: var(--gray) !important; | ||||||||||
cursor: not-allowed !important; | ||||||||||
|
||||||||||
.checkmark-icon, | ||||||||||
> i { | ||||||||||
background-color: var(--white) !important; | ||||||||||
} | ||||||||||
.checkmark-icon::before, .checkmark label:disabled > i::before { | ||||||||||
border-color: var(--gray) !important; | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:disabled:checked:hover + label { | ||||||||||
color: var(--white); | ||||||||||
border: 1px solid var(--gray) !important; | ||||||||||
outline: none !important; | ||||||||||
|
||||||||||
.checkmark-icon, | ||||||||||
> i { | ||||||||||
background-color: var(--white); | ||||||||||
} | ||||||||||
.checkmark-icon::before, .checkmark label:disabled > i::before { | ||||||||||
border-color: var(--gray) !important; | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.radio.checkmark input[type="radio"]:disabled + label { | ||||||||||
color: var(--white); | ||||||||||
border: 1px solid var(--gray) !important; | ||||||||||
outline: none !important; | ||||||||||
background-color: var(--gray) !important; | ||||||||||
} |
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.
you can nest it inside the previous rule