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

Remove borders on Caption wrapper #2742

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

viktorrenkema
Copy link
Contributor

The Caption component wraps elements that can potentially have a caption (these are Files, Images, Drawing and Embed. Whether you add a caption or not doesnt matter, they all get the border that is set on the Caption wrapper.

It was suggested that this is not ideal for images that are diagrams, and I can imagine the same holds for Drawing blocks. This PR removes the border, the Files block keeps its border which we want.

Raised here: https://github.com/orgs/GitbookIO/discussions/830 (thanks Janice!)

Before:

image

After:

image

Copy link
Contributor

GitBook Preview
Latest commit: https://96dffbbc.gitbook-open.pages.dev
PR: https://pr2742.gitbook-open.pages.dev

Copy link

argos-ci bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 4 changed, 4 added Jan 14, 2025, 10:09 AM

@viktorrenkema viktorrenkema merged commit 994ebff into main Jan 15, 2025
9 checks passed
@viktorrenkema viktorrenkema deleted the viktor/remove-borders-on-captions branch January 15, 2025 11:05
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.

2 participants