-
Notifications
You must be signed in to change notification settings - Fork 594
fix: navigation component #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'nuka-carousel': patch | ||
| --- | ||
|
|
||
| Replace div for button elements #1081 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,13 +17,13 @@ $ pnpm run build | |
|
|
||
| ## Running the demos | ||
|
|
||
| Run the NextJS example on `localhost:3000` | ||
| Run docosaurus site on `localhost:3000` | ||
|
|
||
| ```sh | ||
| $ pnpm run start:nextjs | ||
| $ pnpm run start:website | ||
| ``` | ||
|
|
||
| To make changes to the Nuka Carousel library and have those changes reflect in the NextJS demo app also run | ||
| To make changes to the Nuka Carousel library and have those changes reflect in the Docosaurus demo app also run | ||
|
|
||
|
Comment on lines
+20
to
27
|
||
| ```sh | ||
| $ pnpm run build:watch | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,10 @@ | |||||||||||||||||||||
| border-radius: 9999px; | ||||||||||||||||||||||
| font-size: 1rem; | ||||||||||||||||||||||
| user-select: none; | ||||||||||||||||||||||
| border: 0; | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+44
to
47
|
||||||||||||||||||||||
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .nuka-nav-button-enabled { | |
| display: flex; | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,12 @@ export function NavButtons() { | |
|
|
||
| return ( | ||
| <> | ||
| <div className={prevNavClassName} onClick={goBack}> | ||
| <button | ||
| type="button" | ||
| className={prevNavClassName} | ||
| onClick={goBack} | ||
| aria-label="Go to previous slide" | ||
| > | ||
|
Comment on lines
+27
to
+32
|
||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 20 20" | ||
|
|
@@ -36,8 +41,13 @@ export function NavButtons() { | |
| clipRule="evenodd" | ||
| /> | ||
| </svg> | ||
| </div> | ||
| <div className={nextNavClassName} onClick={goForward}> | ||
| </button> | ||
| <button | ||
| type="button" | ||
| className={nextNavClassName} | ||
| onClick={goForward} | ||
| aria-label="Go to next slide" | ||
| > | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 20 20" | ||
|
|
@@ -49,7 +59,7 @@ export function NavButtons() { | |
| clipRule="evenodd" | ||
| /> | ||
| </svg> | ||
| </div> | ||
| </button> | ||
| </> | ||
| ); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changeset summary is a bit ungrammatical (“Replace div for button elements”). Consider updating it to something like “Replace div elements with button elements (#1081)” so the release note reads cleanly.