Fix badly visible focus outlines in composer (#37250)
This commit is contained in:
parent
d7f632f6ba
commit
a9e228361c
@ -399,9 +399,10 @@ export const LanguageDropdown: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={targetRef}>
|
<>
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
|
ref={targetRef}
|
||||||
title={intl.formatMessage(messages.changeLanguage)}
|
title={intl.formatMessage(messages.changeLanguage)}
|
||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
onClick={handleToggle}
|
onClick={handleToggle}
|
||||||
@ -438,6 +439,6 @@ export const LanguageDropdown: React.FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Overlay>
|
</Overlay>
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -628,11 +628,6 @@ body > [data-popper-placement] {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
& > div {
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__uploads {
|
&__uploads {
|
||||||
@ -772,7 +767,6 @@ body > [data-popper-placement] {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__buttons {
|
&__buttons {
|
||||||
@ -932,6 +926,11 @@ body > [data-popper-placement] {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: var(--outline-focus-default);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user