Fix badly visible focus outlines in composer (#37250)

This commit is contained in:
diondiondion 2025-12-15 13:39:04 +01:00 committed by GitHub
parent d7f632f6ba
commit a9e228361c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -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> </>
); );
}; };

View File

@ -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);