[BD-46] DRAFT: fixed pagination buttons - #1849
Conversation
|
Thanks for the pull request, @PKulkoRaccoonGang! When this pull request is ready, tag your edX technical lead. |
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov ReportBase: 90.79% // Head: 91.03% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1849 +/- ##
==========================================
+ Coverage 90.79% 91.03% +0.24%
==========================================
Files 212 214 +2
Lines 3757 3794 +37
Branches 892 908 +16
==========================================
+ Hits 3411 3454 +43
+ Misses 344 338 -6
Partials 2 2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| <Button | ||
| className="page-link" | ||
| aria-label={ariaLabel} | ||
| variant={active ? 'primary' : 'tertiary'} |
There was a problem hiding this comment.
I think this is the right approach here, though I think there are some custom existing Pagination styles interfering with the expected button styles still. For example:
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:
|
|
||
| .page-link { | ||
| border: none; | ||
| background-color: transparent; |
There was a problem hiding this comment.
[curious] Is this property overriding an existing background-color property that's coming from somewhere? I see in the inspector that .page-link has background-color: #fff;, which is overridden by this line.
Should we be relying more on the stock button variant styles in Pagination instead? 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 Pagination as well (e.g., there are no hover styles on the tertiary buttons in the inverse pallete).
There was a problem hiding this comment.
yeah, I think you're right, we'll take a closer look at this
d725044 to
259cbf0
Compare
|
Closing this PR as I believe it is superseded by #1911 |
|
@PKulkoRaccoonGang Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |


Description
Deploy Preview
Pagination component
Merge Checklist
exampleapp?wittjeffandadamstankiewiczas reviewers on this PR.Post-merge Checklist