tldraw/packages
David Sheldrick 3e12b27728
Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#2886)
We had some bad logic in `useRelevantStyles` explicitly allowing an
opacity-slider to be rendered at all times when there is at least one
shape selected.

This shouldn't be the case when the editor is in non-shape-focused tools
like the move tool and the laser pointer tool. I refactored the hook
slightly to make it easier to express the correct logic. See the comment
for a more detailed description.

### Change Type

- [x] `patch` — Bug fix


[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version


### Release Notes

- Fixes an bug causing the opacity slider to show up in the move tool
and laser pointer tool.
2024-02-20 15:09:45 +00:00
..
assets Lokalise: Translations update (#2830) 2024-02-14 08:59:41 +00:00
editor Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#2886) 2024-02-20 15:09:45 +00:00
state dev: swap yarn test and test-dev for better dx (#2773) 2024-02-14 16:05:59 +00:00
store Faster validations + record reference stability at the same time (#2848) 2024-02-20 12:35:25 +00:00
tldraw Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#2886) 2024-02-20 15:09:45 +00:00
tlschema Faster validations + record reference stability at the same time (#2848) 2024-02-20 12:35:25 +00:00
tlsync [Snapping 1/5] Validation & strict types for fractional indexes (#2827) 2024-02-14 17:53:30 +00:00
utils [Snapping 1/5] Validation & strict types for fractional indexes (#2827) 2024-02-14 17:53:30 +00:00
validate Faster validations + record reference stability at the same time (#2848) 2024-02-20 12:35:25 +00:00