[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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0dd436d3fb
Коммит
54207acd6a
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user