You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: render overflow menu in light DOM to apply theme styles - #29
The overflow context menu was rendered inside the component's shadow root, so the cloned day buttons it shows didn't get the global theme styles (e.g. Aura) and looked different from the visible ones. The menu is now created in the component's light DOM and slotted into the shadow root, so the clones get the same styles as the original buttons.
Create the overflow vaadin-context-menu in the light DOM, listening on the overflow button
Remove the Vaadin 25 copy of the button styles for the overflow (fc-days-of-week-selector.css), no longer needed
Overflow items are presented in a context menu that opens when the overflow badge is clicked.
The selector no longer applies its custom button styling. Button dimensions, disabled and read-only appearance, and focus indicators now follow the surrounding theme’s styling.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Walkthrough
The selector now creates a slotted context menu for overflow items. The overflow badge triggers the menu. The component-specific stylesheet and its Java import were removed.
Changes
Overflow menu
Layer / File(s)
Summary
Context menu setup and overflow items src/main/resources/META-INF/resources/frontend/src/fc-days-of-week-selector.ts, src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java, src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector.css
The selector creates a slotted context menu in firstUpdated and assigns overflow items to it when available. The negative left margin moved to the overflow badge. The component-specific stylesheet and its import were removed.
The change moves the overflow menu into the light DOM so theme styles apply to the cloned day buttons. No actionable merge-blocking risk was found.
Pre-merge checks: 5
Check name
Status
Explanation
Linked Issues check
Issue #25 requires consistent styling for visible and overflow day buttons. fc-days-of-week-selector.ts now creates vaadin-context-menu in the component light DOM, assigns it to the overflowMenu…
Out of Scope Changes check
The changes stay within issue #25 and the stated PR intent. The TypeScript change moves the overflow menu and its cloned items to the required light-DOM and slot arrangement. The Java change removes t…
Docstring Coverage
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly describes the main change: rendering the overflow menu in light DOM so theme styles apply.
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The overflow context menu was rendered inside the component's shadow root, so the cloned day buttons it shows didn't get the global theme styles (e.g. Aura) and looked different from the visible ones. The menu is now created in the component's light DOM and slotted into the shadow root, so the clones get the same styles as the original buttons.
vaadin-context-menuin the light DOM, listening on the overflow buttonfc-days-of-week-selector.css), no longer neededClose #25
Summary by CodeRabbit