Skip to content
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

feat: decouple heading tag from size #108

Merged
merged 3 commits into from
Feb 7, 2025
Merged

feat: decouple heading tag from size #108

merged 3 commits into from
Feb 7, 2025

Conversation

ben-basten
Copy link
Member

@ben-basten ben-basten commented Feb 6, 2025

Creating separate props for size vs. heading tag. Headings create semantic structure for navigating a page, which might not always correspond to the size. Also, allowing the use of a <p> tag for generic headings.

Breaking change: all headings need to specify a tag prop to set heading level, and size is optional.

Copy link
Contributor

github-actions bot commented Feb 6, 2025

📖 Preview of ui.immich.app deployed to ui.pr-108.dev.immich.app

@ben-basten ben-basten marked this pull request as ready for review February 7, 2025 00:21
src/lib/types.ts Outdated Show resolved Hide resolved
src/lib/components/Card/CardTitle.svelte Show resolved Hide resolved
@ben-basten ben-basten requested a review from jrasm91 February 7, 2025 01:48
@jrasm91 jrasm91 merged commit 368e893 into main Feb 7, 2025
3 checks passed
@jrasm91 jrasm91 deleted the fix/headings branch February 7, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants