Skip to content

Commit

Permalink
Bundled Themes: Twenty Eleven & Twenty Twelve dropdown category widge…
Browse files Browse the repository at this point in the history
…t exceeds parent div when strings are long enough.

Fixes the width of the category dropdown by limiting the width of `select` items in widgets using `max-width: 100%`.

Props gma992, karmatosed.
Fixes #37926.

git-svn-id: https://develop.svn.wordpress.org/trunk@47801 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ianbelanger79 committed May 15, 2020
1 parent 9c3a5d3 commit 7edaf9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentyeleven/style.css
Expand Up @@ -1846,6 +1846,9 @@ video {
.widget a:active {
text-decoration: underline;
}
.widget select {
max-width: 100%;
}

/* Search Widget */
.widget_search form {
Expand Down
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwelve/style.css
Expand Up @@ -1417,6 +1417,9 @@ a.comment-edit-link:hover {
/* =Widgets
-------------------------------------------------------------- */

.widget select {
max-width: 100%;
}
.widget-area .widget ul ul {
margin-left: 12px;
margin-left: 0.857142857rem;
Expand Down

0 comments on commit 7edaf9b

Please sign in to comment.