Button only focussable with keyboard

This commit is contained in:
Daniel Schädler 2025-03-17 15:34:03 +01:00
parent e23c73594a
commit dfd7525eec
2 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import React, {Component} from 'react';
import {getGroup} from '../redux/tournamentApi';
import {notify} from 'react-notify-toast';
import {sortMatchesByPositionAscending} from '../utils/sorting';
import {FaChevronDown, FaChevronUp} from 'react-icons/fa6';
import {FaChevronDown} from 'react-icons/fa6';
export default class GroupStage extends Component {
constructor(props) {
@ -42,7 +42,7 @@ function ShowMatchesToggleChevron(props) {
<Button
color='link'
onClick={props.toggle}
className='position-absolute top-0 end-0 m-2'
className='position-absolute top-0 end-0 m-2 button-no-focus'
>
<FaChevronDown className={`my-chevron ${toggleClass}`} />
</Button>

View File

@ -59,7 +59,13 @@
.my-chevron {
transition: transform 0.3s ease;
color: gray;
}
.my-chevron.rotate {
transform: rotate(180deg);
}
.button-no-focus:focus:not(:focus-visible),
.button-no-focus:active {
outline: none !important;
box-shadow: none !important;
}