Button only focussable with keyboard
This commit is contained in:
parent
e23c73594a
commit
dfd7525eec
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue