Dashboard:

- Close the form after obtaining a valid location.
- Fix focusing the toggle button after closing the form.
- Fix aria attribute values.
- Fix positions in IE11.
- Some JS and CSS cleanup.

Props afercia, coreymckrill.
Fixes #40735.

git-svn-id: https://develop.svn.wordpress.org/trunk@40789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2017-05-19 04:00:32 +00:00
parent 022028ec28
commit 4385a4ff2e
3 changed files with 93 additions and 53 deletions

View File

@@ -323,10 +323,10 @@
}
.community-events-errors[aria-hidden="true"],
.community-events-errors *[aria-hidden="true"],
.community-events-errors [aria-hidden="true"],
.community-events-loading[aria-hidden="true"],
.community-events[aria-hidden="true"],
.community-events *[aria-hidden="true"] {
.community-events [aria-hidden="true"] {
display: none;
}
@@ -342,16 +342,20 @@
.community-events-form .regular-text {
width: 40%;
height: 28px;
height: 29px;
margin: 0;
vertical-align: top;
}
.community-events li.event-none {
border-left: 4px solid #0070AE;
border-left: 4px solid #00a0d2;
}
.community-events-form label {
display: inline-block;
padding-bottom: 3px;
vertical-align: top;
line-height: 28px;
height: 28px;
}
.community-events .activity-block > p {
@@ -359,19 +363,22 @@
display: inline;
}
.community-events-toggle-location {
vertical-align: middle;
}
#community-events-submit {
margin-left: 2px;
margin-left: 3px;
margin-right: 3px;
}
.community-events .button-link:hover,
.community-events .button-link:active {
color: #00a0d2;
}
.community-events-cancel.button.button-link {
color: #0073aa;
/* Needs higher specificity than #dashboard-widgets .button-link */
#dashboard-widgets .community-events-cancel.button-link {
vertical-align: top;
/* Same properties as the submit button for cross-browsers alignment. */
line-height: 26px;
height: 28px;
text-decoration: underline;
margin-left: 2px;
}
.community-events ul {
@@ -1235,10 +1242,25 @@ a.rsswidget {
.community-events-toggle-location {
height: 38px;
vertical-align: baseline;
}
.community-events-form .regular-text {
height: 31px;
height: 32px;
}
#community-events-submit {
margin-bottom: 0;
}
.community-events-form label,
#dashboard-widgets .community-events-cancel.button-link {
/* Same properties as the submit button for cross-browsers alignment. */
font-size: 14px;
line-height: normal;
height: auto;
padding: 6px 0;
border: 1px solid transparent;
}
}