Skip to content
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

Fix/hover and link styles minor issues #1844

Merged
merged 5 commits into from
Sep 25, 2023

Conversation

mghenciu
Copy link
Contributor

@mghenciu mghenciu commented Sep 1, 2023

Closes #1843 .

Summary

Minor styles changes for hover, focus, links and primary accent colors.

1. Added hover state for the Navigation panels, since we didn't had one

Screen.Recording.2023-09-01.at.13.29.46.mov

2. Improved the hover state for the Accordion Panels, to increase the contrast.

image

3. Made the toggles, Secondary buttons and link - to use 1 single color. In the current live version, those colors change when changing the theme, which creates inconsistent results (attached below):

Screenshot 2023-09-01 at 15 21 04

Test instructions

  1. The secondary buttons, link, toggles -> should use the same accent color
  2. Test the top navigation, that it has hover state now
  3. Test the Accordion hover state, which should also have more contrast now

Checklist before the final review

  • Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

@mghenciu mghenciu added the pr-checklist-skip Allow this Pull Request to skip checklist. label Sep 1, 2023
@mghenciu mghenciu marked this pull request as ready for review September 1, 2023 12:50
@pirate-bot
Copy link
Contributor

pirate-bot commented Sep 1, 2023

Bundle Size Diff

Package Old Size New Size Diff
Animations 270.81 KB 270.81 KB 0 B (0.00%)
Blocks 1.42 MB 1.42 MB 0 B (0.00%)
CSS 85.28 KB 85.28 KB 0 B (0.00%)
Dashboard 122.49 KB 123.99 KB 1.5 KB (1.23%)
Export Import 83.17 KB 83.17 KB 0 B (0.00%)
Pro 303.34 KB 303.34 KB 0 B (0.00%)

@pirate-bot
Copy link
Contributor

pirate-bot commented Sep 1, 2023

Plugin build for 108a699 is ready 🛎️!

@pirate-bot
Copy link
Contributor

pirate-bot commented Sep 1, 2023

E2E Summary

Typing

Test Average Time (ms) Standard Deviation (ms) Median Time (ms) Quantile for soft limit (%) Quantile for hard limit (%)
Typing 54.42 5.87 53.55 84.21 (60ms) 100 (80ms)
Values above 60ms "0 - 67.80, 13 - 66.29, 16 - 61.89"

@mghenciu
Copy link
Contributor Author

mghenciu commented Sep 1, 2023

Here are the details from a test instance, @JohnPixle , in case you have time and also want to test the changes.
Nothing just some colors, hover and focus updates.

https://irritatehorses.s4-tastewp.com/wp-admin
admin | OWX7ndMCiZw

@HardeepAsrani
Copy link
Member

Hey @mghenciu,

When you're done with the changes, don't forget to ask Robert or me for a PR review. One thing I wanted to mention is if you're making style changes to core components like buttons, I'll recommend you to test with previous versions of WordPress to ensure it doesn't affect them negatively. Thanks!

@mghenciu
Copy link
Contributor Author

One thing I wanted to mention is if you're making style changes to core components like buttons, I'll recommend you to test with previous versions of WordPress to ensure it doesn't affect them negatively. Thanks!

Thank you for the feedback, Hardeep.

Do you mean to test in the Otter Dashboard context? or also in other places?
If I am not mistaken, those style changes should apply only the Otter context.

@HardeepAsrani
Copy link
Member

@mghenciu Only testing in Dashboard should be enough.

@mghenciu
Copy link
Contributor Author

mghenciu commented Sep 11, 2023

I did tested with:

  • 6.3.1
  • 6.1
  • 5.9
  • 5.8

And the style changes look ok.

Let me know if something else is required @HardeepAsrani , before asking for a review on this.
Thank you!

@HardeepAsrani
Copy link
Member

@mghenciu That's great then, you can put it to a review & then QA.

src/dashboard/style.scss Outdated Show resolved Hide resolved
src/dashboard/style.scss Outdated Show resolved Hide resolved
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Sep 12, 2023
@HardeepAsrani
Copy link
Member

@Soare-Robert-Daniel Can you review the changes here?

Copy link
Contributor

@Soare-Robert-Daniel Soare-Robert-Daniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good.

@rodica-andronache
Copy link

@mghenciu everything's working well here 👍

@HardeepAsrani HardeepAsrani merged commit ac14b74 into development Sep 25, 2023
12 checks passed
@HardeepAsrani HardeepAsrani deleted the fix/hover-and-link-styles-minor-issues branch September 25, 2023 13:19
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 2.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist. released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor improvements on the Focus, Hover and secondary buttons in the Otter Dashboard
5 participants