-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
DRAFT 742-feat: Update subtitle to support heading tags #806
base: main
Are you sure you want to change the base?
DRAFT 742-feat: Update subtitle to support heading tags #806
Conversation
π WalkthroughWalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User/Application
participant S as Subtitle Component
participant T as Test Suite
U->>S: Render Subtitle (optionally with "as" prop)
S->>S: Determine HTML tag based on provided "as" (default: h3)
S-->>U: Output the appropriate heading element
T->>S: Execute test to verify rendered tag matches expectation
Possibly related PRs
Suggested labels
Suggested reviewers
π Recent review detailsConfiguration used: .coderabbit.yaml π Files selected for processing (4)
π€ Files with no reviewable changes (2)
π Additional comments (4)
β¨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
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
Documentation and Community
|
Do we need to change all h2-h6 tags in code to Subtitle component? |
Yes |
What type of PR is this? (select all that apply)
Description
Update Subtitle component to support heading tags from h2 to h6 (h3 by default). Add tests for new headings level.
Related Tickets & Documents
Screenshots, Recordings
Please replace this line with any relevant images for UI changes.
Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?
Summary by CodeRabbit
New Features
h2
,h3
,h4
,h5
,h6
) based on a configurable option.light
andregular
) for subtitle styling.Bug Fixes
Tests