Skip to content

fix(callout): explicitly style label for higher specificity - #693

Merged
huyenltnguyen merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/callout-label
Oct 15, 2025
Merged

huyenltnguyen merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/callout-label

Conversation

@huyenltnguyen

Copy link
Copy Markdown
Member

Checklist:

This is a bit annoying.

Within the library, the Callout's label has the correct text color, but when used in the /learn client, the color is being overridden by https://github.com/freeCodeCamp/freeCodeCamp/blob/2f9057158359338dbbe4829d39a9504edebb598a/client/src/components/layouts/global.css#L480-L482.

So I'm fighting the specificity by adding a class to the label.

@huyenltnguyen
huyenltnguyen marked this pull request as ready for review October 15, 2025 19:40
@huyenltnguyen
huyenltnguyen requested a review from a team October 15, 2025 19:40
@huyenltnguyen
huyenltnguyen merged commit eb777fc into freeCodeCamp:main Oct 15, 2025
8 checks passed
@huyenltnguyen
huyenltnguyen deleted the fix/callout-label branch October 15, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant