Merge pull request #2469 from ClearlyClaire/glitch-soc/fixes/compose-form-checkbox

[Glitch] Change compose form checkbox to native input with `appearance: none`
pull/2344/head
Claire 2023-11-15 20:27:37 +01:00 committed by GitHub
commit 61df4f9cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -62,8 +62,6 @@ class SensitiveButton extends 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}}'

View File

@ -104,10 +104,7 @@
}
input[type='checkbox'] {
display: none;
}
.checkbox {
appearance: none;
display: inline-block;
position: relative;
border: 1px solid $ui-primary-color;
@ -120,8 +117,9 @@
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>")