-
Notifications
You must be signed in to change notification settings - Fork 592
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 3 commits
3518dfe
a391411
653a62d
db8ae25
b52b613
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 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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
+49
to
52
|
||||||||||||||||||||||
| 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
+33
|
||
| <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> | ||
| </> | ||
| ); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.