[Glitch] Change compose form checkbox to native input with `appearance: none`
Port d3b4d4d4f3
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
7e5d00720b
commit
0d877a3076
|
@ -62,8 +62,6 @@ class SensitiveButton extends PureComponent {
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span className={classNames('checkbox', { active })} />
|
|
||||||
|
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='compose_form.sensitive.hide'
|
id='compose_form.sensitive.hide'
|
||||||
defaultMessage='{count, plural, one {Mark media as sensitive} other {Mark media as sensitive}}'
|
defaultMessage='{count, plural, one {Mark media as sensitive} other {Mark media as sensitive}}'
|
||||||
|
|
|
@ -104,10 +104,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='checkbox'] {
|
input[type='checkbox'] {
|
||||||
display: none;
|
appearance: none;
|
||||||
}
|
|
||||||
|
|
||||||
.checkbox {
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 1px solid $ui-primary-color;
|
border: 1px solid $ui-primary-color;
|
||||||
|
@ -120,8 +117,9 @@
|
||||||
top: -1px;
|
top: -1px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
cursor: inherit;
|
||||||
|
|
||||||
&.active {
|
&:checked {
|
||||||
border-color: $highlight-text-color;
|
border-color: $highlight-text-color;
|
||||||
background: $highlight-text-color
|
background: $highlight-text-color
|
||||||
url("data:image/svg+xml;utf8,<svg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4.5 8.5L8 12l6-6' stroke='white' stroke-width='1.5'/></svg>")
|
url("data:image/svg+xml;utf8,<svg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4.5 8.5L8 12l6-6' stroke='white' stroke-width='1.5'/></svg>")
|
||||||
|
|
Loading…
Reference in New Issue