-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: pagination link component (resolves #10) #29
Conversation
✅ Deploy Preview for idg-ds ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
A couple changes to the gradient. Also, this still needs focus and active states!
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.
A couple changes to the gradient. Also, this still needs focus and active states!
Thanks for your review! I got the gradient values from Figma, so I assumed that would be correct. I forgot about the focus and active styles, I will add them now. |
We were both right with respect to the colours— the gradients actually go to |
One issue with the focus state is that the focus ring as shown in the design should be inside the box and not outside. You can see an example of how to address this using box-shadow on my draft PR for navigation:
Since you won't be using the |
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.
One other note— even in the default state I think the top border and color should use --fl-linkColor
to show that it's an interactive element.
Thanks for your feedback! I set outline to "none" instead, since we don't use it, but if you think setting it to transparent is more appropriate, I will change it to transparent. Also, I added align-items center to the pagination class, because I noticed that the text in the button is not vertically centered. |
The reason for the outline rule is described in the link below— and actually you should follow the syntax shown here ( |
Thanks for your explanation and the link! |
@chosww You need to use the same approach for both the default style and the focus style— box-shadow. Right now this happens (notice the jump of the top border): focus.mp4You can see this on my navigation PR. You may also want to explore the box-shadow syntax on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow |
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.
Final change: the pagination link should not be underlined, so you'll need to add a CSS rule to remove the underline.
See #10 for details.