ui: Add Local flag to local dc in dropdown (#9419)

* Add Local flag to local dc in dropdown

* Remove brand color from the check

* Move styling to main-nav-horizonal styling sheets
This commit is contained in:
Kenia 2020-12-17 13:57:07 -05:00 committed by GitHub
parent 4d6dc1fd8f
commit 80fd11c1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View File

@ -94,7 +94,10 @@
@href={{href-mut (hash dc=item.Name)}}
>
<BlockSlot @name="label">
{{item.Name}}
<span>{{item.Name}}</span>
{{#if item.Local}}
<span>Local</span>
{{/if}}
</BlockSlot>
</MenuItem>
{{/each}}

View File

@ -31,5 +31,4 @@
}
%menu-panel .is-active > *::after {
@extend %with-check-plain-mask, %as-pseudo;
background-color: var(--swatch-brand-600, $black);
}

View File

@ -17,6 +17,12 @@
%main-nav-horizontal .popover-menu > label > button::after {
top: 2px;
}
%main-nav-horizontal .is-local [role='menuitem'] {
display: inline-block;
}
%main-nav-horizontal .is-local [role='menuitem']:after {
display: inline-flex !important;
}
@media #{$--horizontal-nav} {
%main-nav-horizontal > ul,
%main-nav-horizontal-panel {

View File

@ -36,3 +36,8 @@
}
}
/**/
/* nav dropdown */
%main-nav-horizontal .is-local span:nth-child(2) {
@extend %pill-200, %frame-gray-600;
}
/**/