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

Review padding and margins across framework #4

Open
davestewart opened this issue Sep 20, 2023 · 0 comments
Open

Review padding and margins across framework #4

davestewart opened this issue Sep 20, 2023 · 0 comments
Labels
improvement An improvement to an existing feature

Comments

@davestewart
Copy link
Contributor

davestewart commented Sep 20, 2023

Background

On close inspection, horizontal padding is kinda off on various elements of the framework.

On some elements it's quite thin horizontally, on some structural elements there is not enough padding to provide significant contrast.

Hero

https://spectre-org.github.io/spectre-docs/docs/layout/hero.html

CleanShot 2024-09-19 at 01 04 54

Left-padding is too thin, and last-child should not pad the bottom

Lists

https://picturepan2.github.io/spectre/elements/typography.html#typography-lists

image

The spacing between related bullets is quite large, and the gap between bullet and text is too big. Also, see #24.

Labels

https://picturepan2.github.io/spectre/elements/labels.html

image
image

The x padding is a bit thin, especially on the rounded labels.

Buttons

https://picturepan2.github.io/spectre/elements/buttons.html

image

The x padding is a little thin.

Forms

https://picturepan2.github.io/spectre/elements/forms.html

image image

Inconsistent padding in form fields.

Tables

https://picturepan2.github.io/spectre/elements/tables.html

image

Padding is too thin in x, and too fat in y.

Toasts

https://picturepan2.github.io/spectre/components/toasts.html

image

Padding feels like it should be equal in x and y.

Accordions:

https://picturepan2.github.io/spectre/components/accordions.html#accordions

image

The inner text does not line up with the header.

Also, not consistent with navs:

image

Modals

https://picturepan2.github.io/spectre/components/modals.html#example-modal-1

image

Top padding looks a little squashed.

Compared to popover padding which feels more comfortable:

image

Panels

https://picturepan2.github.io/spectre/components/panels.html

image

Content x padding is a little thin.

Proposal

It would be good to:

  • make padding feel more consistent between x and y (especially on corners)
  • give structural elements more indentation
  • review size variants

It seems that padding is controlled by a variable, so it could be quite an easy win, perhaps just better defaults:

@davestewart davestewart added the feature A brand new feature label Sep 20, 2023
@davestewart davestewart changed the title Improve labels Review padding and margins across framework Oct 13, 2023
@davestewart davestewart added improvement An improvement to an existing feature and removed feature A brand new feature labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement to an existing feature
Projects
Status: No status
Development

No branches or pull requests

1 participant