quadratic
quadratic copied to clipboard
feature: toggle borders
trafficstars
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:
- Clear all borders
- Apply top border
- Apply bottom border
- Apply right border
However, if border controls allowed "toggling" then it would only be one step:
- Toggle border left
Jim's suggestion is what we do for toggling styles like bold. It's the most consistent behavior and should be implemented.