mirror of https://github.com/status-im/consul.git
ui: Use pill/badge components for intention filter options (#9357)
This commit is contained in:
parent
2c3b6aec05
commit
9d81319074
|
@ -41,9 +41,12 @@
|
|||
</BlockSlot>
|
||||
<BlockSlot @name="options">
|
||||
{{#let components.Optgroup components.Option as |Optgroup Option|}}
|
||||
<Option class="value-allow" @value="allow" @selected={{contains 'allow' @filter.accesses}}>Allow</Option>
|
||||
<Option class="value-deny" @value="deny" @selected={{contains 'deny' @filter.accesses}}>Deny</Option>
|
||||
<Option class="value-" @value="app-aware" @selected={{contains 'app-aware' @filter.accesses}}>App aware</Option>
|
||||
<Option class="value-allow" @value="allow" @selected={{contains 'allow'
|
||||
@filter.accesses}}><span>Allow</span></Option>
|
||||
<Option class="value-deny" @value="deny" @selected={{contains 'deny'
|
||||
@filter.accesses}}><span>Deny</span></Option>
|
||||
<Option class="value-" @value="app-aware" @selected={{contains
|
||||
'app-aware' @filter.accesses}}><span>App aware</span></Option>
|
||||
{{/let}}
|
||||
</BlockSlot>
|
||||
</PopoverSelect>
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
.consul-intention-search-bar {
|
||||
.value-allow button::before {
|
||||
@extend %with-arrow-right-mask, %as-pseudo;
|
||||
color: $green-500;
|
||||
li button span {
|
||||
@extend %pill-700;
|
||||
}
|
||||
.value-deny button::before {
|
||||
@extend %with-deny-color-icon, %as-pseudo;
|
||||
.value-allow span {
|
||||
@extend %pill-allow;
|
||||
}
|
||||
.value- button::before {
|
||||
@extend %with-layers-mask, %as-pseudo;
|
||||
.value-deny span {
|
||||
@extend %pill-deny;
|
||||
}
|
||||
.value- span {
|
||||
@extend %pill-l7;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue