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

[core] fix(Callout): use visual margin when content is simple text #6276

Merged
merged 3 commits into from
Jul 12, 2023

Conversation

adidahiya
Copy link
Contributor

Fixes #6074

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Add a new .bp5-callout-body wrapper element around <Callout> children to help distinguish between cases where there is and isn't body content to render, so that we can set a margin between the heading and body appropriately.

Reviewers should focus on:

Visual margins look good in all cases where title is/isn't present and body content is/isn't present.

Screenshot

@adidahiya
Copy link
Contributor Author

@CPerinet do you know why there is an extra 2px top margin on the icon and heading element? it was added in #5834

@adidahiya
Copy link
Contributor Author

[core] fix(Callout): use visual margin when content is simple text

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya
Copy link
Contributor Author

Looks good in docs preview with various options:

image
image
image
image
image

@CPerinet now I realize that the 2px top margin helps to align the icon when there is no title 👍

@adidahiya
Copy link
Contributor Author

fix margin when title is absent

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya enabled auto-merge (squash) July 12, 2023 23:37
@adidahiya
Copy link
Contributor Author

fix lint

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit 63a9884 into develop Jul 12, 2023
12 checks passed
@adidahiya adidahiya deleted the ad/fix-callout-margin branch July 12, 2023 23:44
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.

Callout is missing margin between title and content when content consists only of text
1 participant