[MM-61631]: Remove focusable child descendants (#29745)

* [MA-37]: Remove focusable child descendants

* [MA-37]: Fix E2E tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Saurabh Sharma
2025-01-24 20:22:16 +05:30
коммит произвёл GitHub
родитель 0dd436d3fb
Коммит 54207acd6a
4 изменённых файлов: 16 добавлений и 8 удалений

Просмотреть файл

@@ -179,20 +179,23 @@ export default function TeamButton({
>
{(provided, snapshot) => {
return (
<div
className='draggable-team-container'
<Link
to={url}
id={`${url.slice(1)}TeamButton`}
aria-label={ariaLabel}
onClick={handleSwitch}
className='draggable-team-container inline-block'
ref={provided.innerRef}
{...provided.draggableProps}
{...provided.dragHandleProps}
tabIndex={-1}
>
<div
className={classNames([`team-container ${teamClass}`, {isDragging: snapshot.isDragging}])}
>
{teamButton}
{btn}
{orderIndicator}
</div>
</div>
</Link>
);
}}
</Draggable>

Просмотреть файл

@@ -32,9 +32,14 @@
.draggable-team-container {
position: relative;
display: inline-block;
margin-right: auto;
margin-bottom: 12px;
margin-left: auto;
&:hover, &:focus {
text-decoration: none;
}
}
.team-container {