[83] Contextualise code view based on current navigator location #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the code preview to show only the styles currently being edited, rather than the entire theme config.
The router context is used to allow the code preview to change based on the current navigator location. In other words, when you click a block or element, you will only see the styles related to that item in the code preview area.
This makes it clearer which style changes are being applied. This change only impacts the code preview, the theme.json export is left untouched and will contain all data.
Related #83
Change Log
Steps to test
Screenshots/Videos
Screen.Capture.on.2024-08-08.at.11-58-05.mp4
Checklist: