Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
76729fd9
Commit
76729fd9
authored
May 25, 2023
by
Lyza Danger Gardner
Committed by
Lyza Gardner
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `Button` instead of `ButtonBase` in `PaginationNavigation`
parent
22820690
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
PaginationNavigation.tsx
src/sidebar/components/PaginationNavigation.tsx
+6
-3
No files found.
src/sidebar/components/PaginationNavigation.tsx
View file @
76729fd9
import
{
import
{
Button
Base
,
Button
,
ArrowLeftIcon
,
ArrowLeftIcon
,
ArrowRightIcon
,
ArrowRightIcon
,
}
from
'@hypothesis/frontend-shared'
;
}
from
'@hypothesis/frontend-shared'
;
...
@@ -16,14 +16,17 @@ type NavigationButtonProps = PresentationalProps &
...
@@ -16,14 +16,17 @@ type NavigationButtonProps = PresentationalProps &
function
NavigationButton
({
...
buttonProps
}:
NavigationButtonProps
)
{
function
NavigationButton
({
...
buttonProps
}:
NavigationButtonProps
)
{
return
(
return
(
<
Button
Base
<
Button
classes=
{
classnames
(
classes=
{
classnames
(
'px-3.5 py-2.5 gap-x-1 font-semibold'
,
'px-3.5 py-2.5 gap-x-1'
,
'font-semibold'
,
// These colors are the same as the "dark" variant of IconButton
// These colors are the same as the "dark" variant of IconButton
'text-grey-7 bg-grey-2 enabled:hover:text-grey-9 enabled:hover:bg-grey-3'
,
'text-grey-7 bg-grey-2 enabled:hover:text-grey-9 enabled:hover:bg-grey-3'
,
'disabled:text-grey-5 aria-pressed:bg-grey-3 aria-expanded:bg-grey-3'
'disabled:text-grey-5 aria-pressed:bg-grey-3 aria-expanded:bg-grey-3'
)
}
)
}
{
...
buttonProps
}
{
...
buttonProps
}
size=
"custom"
variant=
"custom"
/>
/>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment