Skip to content

Conversation

@JayGeorge
Copy link

This PR should fix #12457, improving the "create folder" interactions.

It's not quite perfect, but a lot better than the current UX.

  1. When you create a new folder, the placeholder text is lighter. It's gray-400 rather than gray-500. While technically this is not quite as color-contrast accessible, on balance it feels more obvious that it's placeholder text now.

2026-01-12 at 16 27 32@2x

  1. If you just hit enter the text turns red, prompting you to fix the name (in addition to the toast that was already there).

2026-01-12 at 16 34 56@2x

  1. If you enter a valid value and hit enter, the folder will be created.

So this is where it gets a little gnarly…

Since a Reka component is used here to manage the [data-placeholder-shown], it becomes tricky to target the error state. There may be a better way, but I figured out I could add an error class to the hidden input, then target that with CSS.

The only downside is that when entering a correct value, it will temporarily appear red before being created—I guess while the validation is happening and the error is being removed.

@jasonvarga jasonvarga merged commit b22fc83 into master Jan 13, 2026
11 checks passed
@jasonvarga jasonvarga deleted the new-folder-ux-improvements branch January 13, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants