Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
WalkthroughMoved list-item border rendering to a ::before overlay that inherits border-radius and uses a new outline-offset variable ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
Preview: https://pf-pr-8134.surge.sh A11y report: https://pf-pr-8134-a11y.surge.sh |
mcoker
left a comment
There was a problem hiding this comment.
Just one update please, otherwise LGTM!
| } | ||
|
|
||
| &:focus-visible { | ||
| outline-offset: var(--#{$notification-drawer}__list-item--focus--OutlineOffset); |
There was a problem hiding this comment.
Can you apply this style to the .#{$notification-drawer}__list-item element directly - not just on .pf-m-hoverable&:focus-visible? Since items have a border, seems fair that when any receive focus, the outline should be offset. FWIW we also do not currently use outline for any purposes other than focus outlines.
There was a problem hiding this comment.
I’ve applied the style to .#{$notification-drawer}__list-item.
| &:focus-visible { | ||
| outline-offset: var(--#{$notification-drawer}__list-item--focus--OutlineOffset); | ||
| } |
There was a problem hiding this comment.
Sorry, what I meant was to move outline-offset to the main block of declarations for .#{$notification-drawer}__list-item - no need to just scope it to &:focus-visible
…larations for .#{-drawer}__list-item
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/patternfly/components/NotificationDrawer/notification-drawer.scss`:
- Line 40: Rename the CSS custom property to match the existing OutlineOffset
convention: change --#{$notification-drawer}__list-item--focus--OutlineOffset to
--#{$notification-drawer}__list-item--OutlineOffset and update any usages to
that name so it aligns with the group-toggle variable (--OutlineOffset) and
removes the redundant --focus-- infix for consistency.
ℹ️ Review info
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
src/patternfly/components/NotificationDrawer/notification-drawer.scss
mcoker
left a comment
There was a problem hiding this comment.
Coderabbit has a good point - no need for --focus in the var name now that the style no longer applies specifically for the focus state.
…er.scss Co-authored-by: Michael Coker <[email protected]>
…er.scss Co-authored-by: Michael Coker <[email protected]>
|
🎉 This PR is included in version 6.5.0-prerelease.46 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #8091.
Prevents Notification Drawer layout shift when unread items are marked read by moving the list-item border from the element itself to a
::beforepseudo-element. Visual styles remain the same; box size no longer changes.Assisted-by: GitHub Copilot
Summary by CodeRabbit