Problem/Motivation
When we hover on save button in comment form while adding link it shows odd behaviour and is not looking nice.Attaching a video for reference.
Steps to reproduce
1.Create an article node.
2.Add a comment.
3.Click on add link icon present on the right side of the italic icon.
4.Add link there, hover on save button.
5.On hover button becomes a little small.
Proposed resolution
We have to handle on hover change in border property for button and font-weight property of button text.
Comment | File | Size | Author |
---|---|---|---|
#30 | Screen Recording 2021-09-14 at 9.31.29 AM.mov | 857.62 KB | Gauravvvv |
#28 | 3211395__26-28.txt | 1.7 KB | andy-blum |
#28 | 3211395_28.patch | 1.04 KB | andy-blum |
#24 | Updated Hover Color 3211395.png | 530 KB | chetanbharambe |
#24 | After Patch 3211395 up.png | 596.67 KB | chetanbharambe |
Issue fork drupal-3211395
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aaron.ferris CreditAttribution: aaron.ferris commentedSeems these buttons are inheriting hover & focus styles from jQuery UI
core/assets/vendor/jquery.ui/themes/base/theme.css
Feels like we need to declare these properties in the
button:hover/button:focus
rulesets.Comment #3
aaron.ferris CreditAttribution: aaron.ferris commentedSomething like the attached patch.
I've checked this with both a button, and primary button inside a dialog and it seems to be OK - the
background: none
gets overridden by thebutton--primary:hover/focus
rule.Comment #4
aaron.ferris CreditAttribution: aaron.ferris commentedComment #5
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commented@aaron.ferris Thanks for the patch, it applied successfully and looks good to me. I have attached video here.
marking as RTBC.
Comment #6
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commentedComment #7
kiran.kadam911Patch works! Things are looking good after a patch.
Before patch:
After patch:
RTBC +1
Thanks!
Comment #8
lauriiiWould be great to have one of the subsystem maintainers review this change since it impacts all buttons using this variation.
Comment #10
mitthukumawat CreditAttribution: mitthukumawat as a volunteer and at Zyxware Technologies for Drupal Association commentedPatch applied cleanly for me and resolved the issue of save button state on hover.
Comment #11
chetanbharambe CreditAttribution: chetanbharambe at QED42 for Drupal India Association commentedComment #12
chetanbharambe CreditAttribution: chetanbharambe at QED42 for Drupal India Association commentedVerified and tested patch #3.
Patch applied successfully and looks good to me.
Testing Steps:
# Goto: admin/content
# Create an article node.
# Add a comment.
# Click on the add link icon
# Add link there, hover on save button.
# On hover, button becomes a little small
Can be a move to RTBC.
Comment #13
chetanbharambe CreditAttribution: chetanbharambe at QED42 for Drupal India Association commentedComment #14
lauriiiMoving back to needs review to address #8.
Comment #15
mherchelComment #16
xjmI didn't check with tooling, but looking at the videos and screenshots, I strongly suspect the current behavior shows a contrast ratio violation. That makes this a major bug, an accessibility gate violation, and a stable blocker.
Comment #17
xjmComment #18
mherchelPatch #3 looks perfect. RTBC
Comment #19
lauriiiThis seems like a really nice improvement! I checked the color contrast of the color used on hover, and it seems like it's not sufficient. We should probably wait until #3211616: Olivero: a11y color contrast test fail for primary button on hover has landed and use the color from there on the hover.
Comment #20
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for Drupal India Association commentedOn hover button is using
--color--blue-50
variable, Updated it with newly added variable color--color--blue-10
Please review.Comment #21
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for Drupal India Association commentedComment #23
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for Drupal India Association commentedAdded interdiff for #3. Please review
Comment #24
chetanbharambe CreditAttribution: chetanbharambe at QED42 for Drupal India Association commentedHi @Gauravmahlawat
Patch applied successfully but Some test cases are getting failed on patch #23
Testing Steps:
# Goto: admin/content
# Create an article node.
# Add a comment.
# Click on the add link icon
# Add link there, hover on save button.
# On hover, the button becomes a little small
Also, I have checked the variation which is addressed in #8
On hover button is using
--color--blue-50
variable, Updated it with newly added variablecolor --color--blue-10
Please refer attached screenshots for the same.
test cases are getting failed on patch #23 so moving to needs work as the patch needs to be re-rolled again.
Comment #25
andy-blumNew patch is sort of a reroll of #20. Non-reroll changes include:
Comment #26
andy-blumIt tends to help when you actually upload the patch.
Comment #27
mherchelTests failed :(
Comment #28
andy-blumComment #29
andy-blumComment #30
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for Drupal India Association commentedPatch #28, resolved the jerk and color accessibility issue of the save button state on hover.
Adding after patch screen recording. Moving to RTBC.
Comment #33
lauriiiCommitted 8c2a124 and pushed to 9.3.x. Also cherry-picked to 9.2.x because Olivero is experimental. Thanks!