Repository navigation
[BD-46] DRAFT: fixed pagination buttons #1849
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
Changes from 3 commits
cdab705
32264c1
259cbf0
66b95c5
706b601
12ae193
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 |
|---|---|---|
|
|
@@ -158,6 +158,7 @@ class Pagination extends React.Component { | |
| <Button | ||
| className="page-link" | ||
| aria-label={ariaLabel} | ||
| variant={active ? 'primary' : 'tertiary'} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is the right approach here, though I think there are some custom existing The text color of the non-active "tertiary" button variants seem to be getting a blue color instead of the standard "tertiary" button variant styles: |
||
| ref={(element) => { this.pageRefs[page] = element; }} | ||
| onClick={() => { this.handlePageSelect(page); }} | ||
| > | ||
|
|
||


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.
[curious] Is this property overriding an existing
background-colorproperty that's coming from somewhere? I see in the inspector that.page-linkhasbackground-color: #fff;, which is overridden by this line.Should we be relying more on the stock button variant styles in
Paginationinstead? E.g., now that we're pulling in the "tertiary" button variant, that already has a transparent background on it.I believe introducing this property here may be overriding the default hover/focus styles for the buttons in
Paginationas well (e.g., there are no hover styles on the tertiary buttons in the inverse pallete).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.
yeah, I think you're right, we'll take a closer look at this