-
-
Notifications
You must be signed in to change notification settings - Fork 163
Add headerAttrs prop to BOffcanvas and BModal components #2829
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
Conversation
|
Co-authored-by: VividLemon <31498096+VividLemon@users.noreply.github.com>
@copilot You need to add the new props to the .data.ts files in the documentation as it will not build properly without them |
Co-authored-by: VividLemon <31498096+VividLemon@users.noreply.github.com>
Added headerAttrs prop definitions to both modal.data.ts and offcanvas.data.ts documentation files. The build now works properly without any issues. Changes committed in 7fd6679. |
Caution Review failedThe pull request is closed. WalkthroughAdds an optional headerAttrs prop to BModal and BOffcanvas, threads it through type definitions, components, and docs data, and binds it to the header elements. Introduces unit tests validating attribute passthrough, interaction with headerClass, absence when undefined, and noHeader behavior. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant App as App
participant Modal as BModal
participant DOM as DOM Header
App->>Modal: mount with { headerAttrs, headerClass, noHeader }
alt noHeader = true
Modal-->>App: do not render header
else noHeader = false
Modal->>DOM: render header with class + v-bind(headerAttrs)
Note right of DOM: Attributes from headerAttrs applied<br/>(e.g., id, data-*)
end
sequenceDiagram
autonumber
participant App as App
participant Offcanvas as BOffcanvas
participant DOM as DOM Header
App->>Offcanvas: mount with { headerAttrs, headerClass, noHeader }
alt noHeader = true
Offcanvas-->>App: do not render header
else
Offcanvas->>DOM: render header with class + v-bind(headerAttrs)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (7)
✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
commit: |
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by CodeRabbit