mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Change compose form checkbox to native input with appearance: none
(#22949)
This commit is contained in:
parent
b65ca7acc9
commit
d3b4d4d4f3
2 changed files with 3 additions and 7 deletions
|
@ -54,8 +54,6 @@ class SensitiveButton extends React.PureComponent {
|
|||
disabled={disabled}
|
||||
/>
|
||||
|
||||
<span className={classNames('checkbox', { active })} />
|
||||
|
||||
<FormattedMessage
|
||||
id='compose_form.sensitive.hide'
|
||||
defaultMessage='{count, plural, one {Mark media as sensitive} other {Mark media as sensitive}}'
|
||||
|
|
|
@ -405,10 +405,7 @@ body > [data-popper-placement] {
|
|||
}
|
||||
|
||||
input[type='checkbox'] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
appearance: none;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border: 1px solid $ui-primary-color;
|
||||
|
@ -420,8 +417,9 @@ body > [data-popper-placement] {
|
|||
top: -1px;
|
||||
border-radius: 4px;
|
||||
vertical-align: middle;
|
||||
cursor: inherit;
|
||||
|
||||
&.active {
|
||||
&:checked {
|
||||
border-color: $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>")
|
||||
|
|
Loading…
Reference in a new issue