Skip to content

Conversation

@goldenapples
Copy link
Contributor

WordPress has some distinctive admin styles for form elements. Applying the base classes which WP uses to mark up form elements will make the shortcode UI form look less incongruous with the rest of the admin area. It's also easier to enter text with a wider input (regular-text is 25em wide; browser defaults for input width vary, but can be as low as 150px on Firefox)

Text boxes, before:

screen shot 2015-05-19 at 4 05 43 pm

After:

screen shot 2015-05-19 at 4 07 48 pm

WordPress has some distinctive admin styles for form elements. Applying
the base classes which WP uses to mark up form elements will make the
shortcode UI form look less incongruous with the rest of the admin area.
@danielbachhuber danielbachhuber added this to the v0.4.0 milestone May 20, 2015
danielbachhuber pushed a commit that referenced this pull request May 20, 2015
Use "regular-text" class for inputs in WordPress admin
@danielbachhuber danielbachhuber merged commit 17fdb30 into master May 20, 2015
@danielbachhuber danielbachhuber deleted the classname-for-text-inputs branch May 20, 2015 16:21
@danielbachhuber
Copy link
Contributor

🌵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants