Skip to content

Commit cd778c0

Browse files
authored
Merge pull request #52 from sparksuite/final-tweaks
Final tweaks before publishing
2 parents 6f21f95 + 3f4f3c9 commit cd778c0

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,15 @@ Our team carefully studied and adhered to [Web Content Accessibility Guidelines
5757
- Appears and operates in predictable ways ([WCAG: 3.2](https://www.w3.org/WAI/WCAG21/quickref/#predictable))
5858

5959
For more details, see [this comment](https://github.com/sparksuite/react-accessible-dropdown-menu-hook/issues/8#issuecomment-567568103).
60+
61+
## Local development
62+
63+
To prep a just-cloned or just-cleaned repository for local development, run `yarn dev`.
64+
65+
To test the whole project, run `yarn test`.
66+
67+
To run the demo website locally, run `cd ./demo && yarn start`.
68+
69+
To format the code, run `yarn format` at either the project root or within the `./demo` directory.
70+
71+
To clean the repository (removes any programmatically generated files), run `yarn clean`.

demo/src/app.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ h2 {
109109
}
110110

111111
#menu a {
112-
color: #3a8eb8;
112+
color: #29779e;
113113
text-decoration: none;
114114
cursor: pointer;
115115
outline: none;
@@ -150,12 +150,12 @@ ul li {
150150

151151
.footer {
152152
margin-top: 10rem;
153-
color: #999;
153+
color: #767676;
154154
font-size: 0.8rem;
155155
}
156156

157157
.footer a {
158-
color: #3a8eb8;
158+
color: #29779e;
159159
text-decoration: none;
160160
}
161161

@@ -165,7 +165,7 @@ ul li {
165165

166166
.footer a svg {
167167
font-size: 80%;
168-
color: #777;
168+
color: #767676;
169169
margin-left: 0.1rem;
170170
}
171171

demo/src/app.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const App: React.FC = () => {
1010

1111
// Return JSX
1212
return (
13-
<div className='app'>
13+
<main className='app'>
1414
<h1>React Accessible Dropdown Menu Hook</h1>
1515
<h2>A simple Hook for creating fully accessible dropdown menus in React</h2>
1616

@@ -45,7 +45,10 @@ const App: React.FC = () => {
4545
<em>Once focus is in the menu…</em>
4646

4747
<ul>
48-
<li>The up / down arrow keys allow for navigation through the menu items</li>
48+
<li>
49+
The up / down arrow keys allow for navigation through the menu items (including wrapping from first to
50+
last and vice versa)
51+
</li>
4952
<li>Pressing tab will close the menu and move the focus to the next focusable element</li>
5053
<li>Pressing escape will close the menu and return the focus to the button</li>
5154
<li>
@@ -68,7 +71,7 @@ const App: React.FC = () => {
6871
Sparksuite <i className='fad fa-external-link' />
6972
</a>
7073
</div>
71-
</div>
74+
</main>
7275
);
7376
};
7477

0 commit comments

Comments
 (0)