This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aria-current="page"] { | |
/* Active link styles */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a aria-current="page" href="/">Home</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en-US"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a lang="fi" hreflang="fi" href="/" title="Suomeksi"> | |
<bdi>Suomeksi</bdi> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<thead> | |
<tr> | |
<th>First Name</th> | |
<th aria-sort="ascending">Last Name</th> | |
</tr> | |
</thead> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 id="top-artists-title">Top Artists of 2021</h2> | |
<ul role="listbox" aria-labelledby="top-artists-title"> | |
<li role="option" aria-setsize="20" aria-posinset="5">Bloodbound</li> | |
<li role="option" aria-setsize="20" aria-posinset="6">Manimal</li> | |
<li role="option" aria-setsize="20" aria-posinset="7">Powerwolf</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (prefers-reduced-motion: reduce) { | |
* { | |
animation-duration: 0.01ms !important; | |
animation-iteration-count: 1 !important; | |
transition-duration: 0.01ms !important; | |
scroll-behavior: auto !important; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { css } from 'styled-components'; | |
interface IProps { | |
all?: string; | |
bottom?: string; | |
left?: string; | |
right?: string; | |
top?: string; | |
x?: string; | |
y?: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.popup-outer-container { | |
align-items: center; | |
background: rgba(0, 0, 0, 0.2); | |
display: flex; | |
height: 100vh; | |
justify-content: center; | |
padding: 10px; | |
position: absolute; | |
width: 100%; | |
z-index: 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
focusHandle: Handle; | |
keyHandle: Handle; | |
focusedElementBeforeDialogOpened: HTMLInputElement | HTMLButtonElement; | |
componentDidMount() { | |
if (document.activeElement instanceof HTMLInputElement || | |
document.activeElement instanceof HTMLButtonElement) { |
NewerOlder