UI Simplification: Text element insertion panel - Add Saved Styles
See original GitHub issueFeature Description
See Figma
- Add Saved Styles to the Text insertion panel (add this behind a feature flag! To be removed within #10609)
- Clicking on a saved style when no element is selected or non-text element is selected: Insert a new text element with the saved styles
- Clicking on a saved style when text element selected: Apply the saved style to the selected text(s)
- Note: Display the Insertion
+
icon on the Saved Style (when hovering or focused) if clicking on it results in adding a new element - Display the
+
icon in the panel header for saving a style as well. The icon is disabled if a text element is not selected. - ~Performance: make sure only the Saved Styles panel re-renders when selecting/de-selecting a text element, and make sure it re-renders only if it actually needs to.~ Added a follow-up issue: https://github.com/GoogleForCreators/web-stories-wp/issues/10705
- Add new tests for the Saved Styles.
Alternatives Considered
Additional Context
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
Create and insert component instances - Figma Help Center
Components are UI elements that you can reuse across your designs. ... Insert instances of components from your keyboard using quick insert.
Read more >GUI Programming - Java Programming Tutorial
Construct the component by invoking an appropriate constructor via the new operator;; Identify the container (such as Frame or Panel ) designed to...
Read more >TextBox Class (Windows.UI.Xaml.Controls) - Microsoft Learn
Represents a control that can be used to display and edit plain text (single or multi-line).
Read more >Have You Tried: Manage and Customize Your Workspace
The following is a list of UI elements that can be controlled with a workspace: Palettes; Quick Access toolbar; Ribbon tabs and panels;...
Read more >Handbook Markdown Guide - GitLab
This style guide is for about.gitlab.com. For styles in the GitLab UI, see the GitLab Flavored Markdown documentation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is the latest version of the panel!
We decided to keep the Text Sets section the way it was for now. The only thing we’re adding is that Saved Styles section—like in the last round of changes, people can save new ones with the Plus button and click More Styles to see a flyout.
Assuming the Saved Styles still stay in the Style panel as well, is that correct? -Yes Will clicking on a Saved Style in the Insertion panel insert a text with that style? (Since it’s in the insertion panel). -Yes