Add down states to sales api banners#2342
Conversation
WalkthroughThe changes refactor the SCSS styling for the Changes
Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (2)
resources/scss/admin/components/sales/banner.scss (2)
47-53: Scope the dismiss button more precisely.The selector
.dismissmay collide with other elements. Scope it to an anchor or adopt a BEM-style class name:-.dismiss { +.frm-sale-banner__dismiss-button { // or: a.dismissThis change improves specificity and prevents unintended matches.
55-61: Add keyboard focus styling alongside hover.You’ve added a hover state filter—excellent. For accessibility, extend this to keyboard users by including
:focus-visible:&:hover, &:focus-visible { filter: brightness(90%); a:not(.dismiss) { filter: brightness(90%); } }This ensures consistent feedback for pointer and keyboard interactions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
resources/scss/admin/components/sales/banner.scss(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
- GitHub Check: PHP 8 tests in WP trunk
- GitHub Check: Run PHP Syntax inspection (8.3)
- GitHub Check: PHP 8 tests in WP trunk
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: Cypress
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: Cypress
I'm also nesting the SCSS now.