Skip to content

Commit

Permalink
changed columns styles due to the mockup
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Jul 6, 2021
1 parent 6eb9ff3 commit b349245
Show file tree
Hide file tree
Showing 6 changed files with 390 additions and 65 deletions.
Expand Up @@ -133,6 +133,7 @@ export const AlertEdit = ({
aria-labelledby="flyoutAlertEditTitle"
size="m"
maxWidth={620}
ownFocus={false}
>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s" data-test-subj="editAlertFlyoutTitle">
Expand Down
Expand Up @@ -95,13 +95,13 @@ export const AlertStatusFilter: React.FunctionComponent<AlertStatusFilterProps>
export function getHealthColor(status: AlertExecutionStatuses) {
switch (status) {
case 'active':
return 'primary';
return 'success';
case 'error':
return 'danger';
case 'ok':
return 'subdued';
case 'pending':
return 'success';
return 'accent';
default:
return 'warning';
}
Expand Down
Expand Up @@ -5,3 +5,29 @@
color: $euiColorDarkShade;
}
}

.alertSidebarItem {
&:hover,
&:focus-within,
&[class*='-isActive'] {
.alertSidebarItem__action {
opacity: 1;
}
}
}

/**
* 1. Only visually hide the action, so that it's still accessible to screen readers.
* 2. When tabbed to, this element needs to be visible for keyboard accessibility.
*/
.alertSidebarItem__action {
opacity: 0; /* 1 */

&.alertSidebarItem__mobile {
opacity: 1;
}

&:focus {
opacity: 1; /* 2 */
}
}

0 comments on commit b349245

Please sign in to comment.