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
Update report buttons #1004
Update report buttons #1004
Conversation
Size Change: -1.15 kB (0%) Total Size: 856 kB
ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/1004 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
eb15997
to
64374df
Compare
f2c3ce3
to
e37ce56
Compare
34dc86a
to
7b0713c
Compare
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.
I might have missed this point, but the three buttons (Report this content, Cancel, and CTA in the popover) have the incorrect text style. They have 14px
as font size, and it should be 13px
, as label bold
.
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.
I don't know why, but the focus style's white ring looks thicker than the pink one. Here is the style documentation in the Design Library, and below is attached a zoom-in of the area.
4e606f9
to
4e2fc3c
Compare
I have changed the inner ring width, could you check if it looks correct now, @panchovm ? I don't fully understand what's happening here. The ring width was set to 1.5px, the same as the pink ring width. I've changed the white inner border width to 1px, but it looks as wide as the outer pink one. And the other Storybook snapshots (the focused ones) didn't change. TL;DR: I think the rings are fixed now, but I don't know how |
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.
I've found the reason for mismatch: Chrome applies 1px of outline offset for any focus-visible link. This is why on Chrome the white ring looked bigger than the pink ring. Updating the code now. |
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.
It looks perfect now ✨
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.
LGTM 👍
Fixes
Related to #1020 by @obulat
Description
This PR uses the new button variants and sizes from the Core UI improvements project in the content report components.
transparent-gray
medium
has-icon-end
,pe-0
(to line it up with the layout)VContentReportButton.vue
bordered-gray
medium
VContentReportForm.vue
filled-dark
medium
has-icon-end
Report button's font is semibold, and dark-charcoal instead of dark-charcoal-70. On hover, it has a border instead of underline, as before.
The buttons have larger font and icons, and the bordered button's border is lighter:
Testing Instructions
Check that the 3 buttons use the correct styles.
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin