Improve accessibility scores

This commit is contained in:
Angelos Chalaris
2019-08-16 14:02:33 +03:00
parent 7df5cd4a8c
commit 3b78616102
2 changed files with 2 additions and 1 deletions

View File

@ -97,6 +97,7 @@ const Shell = ({
transitionEnterTimeout={300}
transitionLeaveTimeout={300}
component='button'
aria-label={isDarkMode ? 'Switch to light mode' : 'Switch to dark mode'}
className='menu-button'
childComponent={React.Fragment}
>

View File

@ -58,7 +58,7 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
background: var(--pre-selected-color);
}
:not(pre) > code[class*="language-"] {
:not(pre):not(a) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;