Skip to content

[Feature Proposal] Utility to set border-spacing: 0 #1299

Closed
@brandonpittman

Description

@brandonpittman

Been doing some table styling and I realized that border-radius will only work if you separate borders on tables. Unfortunately, in order to make all the other borders go flush against each other, you then need to set border-spacing: 0; to get rid of the gap. I'd like to propose one of the following:

  1. border-compact or border-spacing-none class that just sets border-spacing: 0
  2. Go full on nuts and incorporate the theme's spacing key to create a full suite of border-spacing utilities

#2 is probably overkill. I can imagine someone else has had an issue like this with tables. I wonder if anyone ever actually wants the separated look on a table anyway. Maybe it's worth setting border-spacing: 0 as a base style in the base.css file.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions