Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions src/wp-admin/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -538,16 +538,34 @@ input[type="number"].tiny-text {
display: none;
}

.tablenav .actions select {
.wp-core-ui .tablenav input[type="text"],
.wp-core-ui .tablenav input[type="password"],
.wp-core-ui .tablenav input[type="date"],
.wp-core-ui .tablenav input[type="datetime"],
.wp-core-ui .tablenav input[type="datetime-local"],
.wp-core-ui .tablenav input[type="email"],
.wp-core-ui .tablenav input[type="month"],
.wp-core-ui .tablenav input[type="number"],
.wp-core-ui .tablenav input[type="search"],
.wp-core-ui .tablenav input[type="tel"],
.wp-core-ui .tablenav input[type="time"],
.wp-core-ui .tablenav input[type="url"],
.wp-core-ui .tablenav input[type="week"],
.wp-core-ui .tablenav select {
padding: 0 12px;
/* inherits font size 14px */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share why we need this comment?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems unnecessary, given that none of the other related contexts have a similar condition.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing my mind; it's helpful, as it gives context for the comment on the line-height calculation.

It comes from the same block of CSS in forms.css, which this duplicates, but adjusting to the compact sizing.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @joedolson @mukeshpanchal27, Yes I have kept it consistent from the original CSS forms.css.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* inherits font size 14px */

line-height: 2.14285714; /* 30px for 32px height with 14px font */
min-height: 32px;
}

.wp-core-ui .tablenav select {
float: left;
margin-right: 6px;
max-width: 12.5rem;
min-height: 32px;
line-height: 2.14285714; /* 30px for 32px height with 14px font */
padding: 0 24px 0 8px;
}

.tablenav .actions .button {
.wp-core-ui .tablenav .button {
min-height: 32px;
line-height: 2.30769231; /* 30px for 32px height with 13px font */
padding: 0 12px;
Expand Down
Loading