Editor feedback

Hello team :waving_hand:

Some feedback I would love to see implemented to improve the WeWeb Editor. The goal would be to have a better developer experience in WeWeb.

Improve selector

I found myself creating custom components just to control states (accessibility, loading state, aria-*…)

  • pseudo-classes (active, focus-visible, first-child, invalid…)
  • pseudo-elements (after, before…)

→ In the selector, add the exhaustive list of pseudo-classes and pseudo-elements.

Improve styling

  • In the Style panel, add a section to add CSS prop when the prop is not available in the UI.
    Including creation of CSS variables (the same way we can create custom attributes in the HTML attributes). It avoids the use of the custom css section which is less flexible and allows for computed values.
  • Allow all styles in any element (don’t restrict if it’s a text or div). It allows for inheritance of styles. For instance, display the text styles on a div.
  • Make inputs more free
    • Add all units in all inputs (px, rem, %, em, dvh…)
    • Don’t limit the list of possible unit (colors, length…) for each type of element (8 units available for width, only 4 for padding) → let user decide.
    • Allow binding of css variables on all fields without formula (for the width prop for instance)
  • Better experience working with CSS variables: right now, we can only set CSS variables, for certain type of inputs (borders, spacing…). I think user should be able to use any token he wants on any input. For instance, I would like to be able to use a spacing token for the width prop. But overall, it also echoes to the “make input more free”.

Fix small UI bugs

As the editor is updated, I feel like it becomes less polished with some visual/behavior bugs. I wish those details were not overseen to make using the Editor satisfying again.


(overflown text)
(not result when searching for some css props)
(too big dropdown width for units)

Goal

  • reduce dependance to custom component
  • custom component for when i need to import dependancies
  • better dev experience

Thank you!

Awesome! Thanks so much for taking the time to share this JP. The team will look into it asap and see what we can implement soon :slight_smile: