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

feature: toggle borders #1231

Open
jimniels opened this issue Mar 27, 2024 · 1 comment
Open

feature: toggle borders #1231

jimniels opened this issue Mar 27, 2024 · 1 comment
Labels
type: enhancement new feature or request

Comments

@jimniels
Copy link
Collaborator

When you're applying borders, such as "Border left", if the border is already there we turn it off. If it's not present we turn it on.

This is especially useful when you have some borders present but need fine-grained control over styling a particular border. For example, imagine you have a cell with borders on all sides

 -----
|     |
 -----

But you want to remove a border on just the left side

 -----
      |
 -----

To do this today, it requires multiple steps:

  1. Clear all borders
  2. Apply top border
  3. Apply bottom border
  4. Apply right border

However, if border controls allowed "toggling" then it would only be one step:

  1. Toggle border left
@davidfig
Copy link
Collaborator

Jim's suggestion is what we do for toggling styles like bold. It's the most consistent behavior and should be implemented.

@jimniels jimniels added the type: enhancement new feature or request label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants