Skip to content

Commit 0a3435b

Browse files
Merge pull request LucasBassetti#207 from SVT/Increase-accessibility
Use button for option element
2 parents 9a0167a + f652047 commit 0a3435b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/steps_components/options/OptionElement.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import styled from 'styled-components';
22
import defaultTheme from '../../theme';
33

4-
const OptionElement = styled.a`
4+
const OptionElement = styled.button`
55
background: ${({ theme }) => theme.botBubbleColor};
6+
border: 0;
67
border-radius: 22px;
78
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
89
color: ${({ theme }) => theme.botFontColor};
@@ -13,6 +14,10 @@ const OptionElement = styled.a`
1314
&:hover {
1415
opacity: 0.7;
1516
}
17+
&:active,
18+
&:hover:focus {
19+
outline:none;
20+
}
1621
`;
1722

1823
OptionElement.defaultProps = {

0 commit comments

Comments
 (0)