Skip to content

fix: removed the fixed header size and margin - #2405

Merged
balco0110 merged 9 commits into
nextfrom
fix/Unable-to-change-font-size-for-headline-in-sd-teaser-media
Nov 17, 2025
Merged

fix: removed the fixed header size and margin#2405
balco0110 merged 9 commits into
nextfrom
fix/Unable-to-change-font-size-for-headline-in-sd-teaser-media

Conversation

@balco0110

Copy link
Copy Markdown
Contributor

Description:

Closes #1312 and #1558

Definition of Reviewable:

  • E2E tests (features, a11y, bug fixes) are created/updated
  • Stories (features, a11y) are created/updated
  • relevant tickets are linked

@changeset-bot

changeset-bot Bot commented Jul 28, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5be8316

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

🚀 Storybook has been deployed for branch fix_Unable-to-change-font-size-for-headline-in-sd-teaser-media

@karlbaumhauer karlbaumhauer moved this from 📋 Backlog to 🏗 In progress in Solid Design System Project Board Jul 29, 2025
@karlbaumhauer karlbaumhauer moved this from 🏗 In progress to 👀 In review in Solid Design System Project Board Jul 29, 2025
@paulovareiro29

Copy link
Copy Markdown
Contributor

Do you think this is a breaking change @smfonseca ? It will break the UI for some teasers

@smfonseca

smfonseca commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Do you think this is a breaking change @smfonseca ? It will break the UI for some teasers

Yes, I believe so.

@mariohamann left a suggestion to address this issue here.

In his example he's targeting directly the h4, but this will cascade to all other teasers. To make it more precise, I suggest adding a class to the headline slot and everything should work as expected.

Can you try it @balco0110?

@smfonseca smfonseca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, do not merge.

@balco0110

Copy link
Copy Markdown
Contributor Author

Do you think this is a breaking change @smfonseca ? It will break the UI for some teasers

Yes, I believe so.

@mariohamann left a suggestion to address this issue here.

In his example he's targeting directly the h4, but this will cascade to all other teasers. To make it more precise, I suggest adding a class to the headline slot and everything should work as expected.

Can you try it @balco0110?

i've pushed the code, added a class and removed the ::slotted([slot='headline']) part, in this way we are able to change the size of the text

@paulovareiro29 paulovareiro29 added the BREAKING CHANGE all issues which end up in a breaking change label Jul 31, 2025
@smfonseca

Copy link
Copy Markdown
Contributor

i've pushed the code, added a class and removed the ::slotted([slot='headline']) part, in this way we are able to change the size of the text

But did you try to change the margin and font-size in the templates without removing ::slotted in css? I'm asking because if we go this route, I think it will mean lots of updates required to be done on users end.

@paulovareiro29
paulovareiro29 marked this pull request as draft August 4, 2025 10:38
@paulovareiro29

Copy link
Copy Markdown
Contributor

Converting to draft to prevent from merging

@MartaPintoTeixeira MartaPintoTeixeira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving as it is not a visual change

@MartaPintoTeixeira MartaPintoTeixeira removed their assignment Aug 4, 2025
@mariohamann

Copy link
Copy Markdown
Contributor

I think this whole thing needs some re-consideration. Ideally it should work without a breaking change. Is this possible in any way?

Comment thread packages/components/src/components/teaser-media/teaser-media.ts Outdated
@paulovareiro29
paulovareiro29 changed the base branch from main to feat/tailwind-v4-and-figma-variables October 20, 2025 08:26
@smfonseca
smfonseca changed the base branch from feat/tailwind-v4-and-figma-variables to next October 28, 2025 14:54
@smfonseca
smfonseca self-requested a review October 28, 2025 14:54
@smfonseca
smfonseca marked this pull request as ready for review October 28, 2025 14:55
@karlbaumhauer karlbaumhauer linked an issue Nov 14, 2025 that may be closed by this pull request
9 tasks
@balco0110
balco0110 merged commit 22c42e7 into next Nov 17, 2025
19 of 20 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Solid Design System Project Board Nov 17, 2025
@balco0110
balco0110 deleted the fix/Unable-to-change-font-size-for-headline-in-sd-teaser-media branch November 17, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE all issues which end up in a breaking change

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

fix: 🤔 unable to change headline margins or size in teaser fix: 🤔 Unable to change font-size for headline in sd-teaser-media

7 participants