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

title: forces margins inconsistanly #349

Open
hipitihop opened this issue Nov 5, 2024 · 1 comment
Open

title: forces margins inconsistanly #349

hipitihop opened this issue Nov 5, 2024 · 1 comment
Assignees
Labels

Comments

@hipitihop
Copy link
Contributor

The title component forces top-margin and bottom-margin by default, not sure why, but it is also difficult/impossible to override as it uses !important

Default:
image

[[rc/title
   :level :level2
   :label "My Title"]

If I use :parts :wrapper to set top bottom margin, it is ignored.
If I use :style {:margin-bottom "0px" :margin-top "0px"} only the top takes.

I find 9/10 I give up on using title because the defaults don't suit the container and the overrides are as much effort as using normal rc/label and restyle with larger font etc.

@kimo-k
Copy link
Contributor

kimo-k commented Nov 6, 2024

I find this annoying too. It seems to throw off our fibonacci-based layout convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants