mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
* fix button padding * rename spacing variables using numerical values * fix toggle aligment * remove unused toggle classes * replace margin and padding with spacing vars * increase base font size * remove switch css, use toggle consistently * remaining margin/padding size vars to spacing pixels * add deprecated note, rever changes to size vars * decrease console size * remove function * adjust card size for small selectable cards * fix select to fit to content width * fix toolbar-scroller height * add changelog; * fix checkbox styling
23 lines
534 B
Handlebars
23 lines
534 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<Input
|
|
id={{this.safeId}}
|
|
name={{this.name}}
|
|
@type="checkbox"
|
|
@checked={{this.checked}}
|
|
{{on "change" this.handleChange}}
|
|
class="toggle is-success is-small"
|
|
disabled={{this.disabled}}
|
|
data-test-toggle-input={{this.name}}
|
|
...attributes
|
|
/>
|
|
<label data-test-toggle-label={{this.name}} for={{this.safeId}} class="toggle-label {{if this.hideLabel 'sr-only'}}">
|
|
{{#if (has-block)}}
|
|
{{yield}}
|
|
{{else}}
|
|
{{this.name}}
|
|
{{/if}}
|
|
</label> |