question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI Simplification: Text element insertion panel - Add Saved Styles

See original GitHub issue

Feature 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

Screenshot 2022-02-15 at 17 48 56

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
agingoldsecocommented, Feb 3, 2022

Here is the latest version of the panel!

Screen Shot 2022-02-02 at 6 34 28 PM

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.

1reaction
andrew-askedallcommented, Jan 21, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found