Skip to content
Snippets Groups Projects
Commit d86b2eef authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Fix styling

parent 9466098a
No related branches found
No related tags found
Loading
......@@ -73,26 +73,12 @@ class Button extends VPULitElement {
// language=css
return css`
${commonUtils.getThemeCSS()}
.button {
cursor: pointer;
justify-content: center;
padding-bottom: calc(.375rem - 1px);
padding-left: .75rem;
padding-right: .75rem;
padding-top: calc(.375rem - 1px);
text-align: center;
white-space: nowrap;
}`;
${commonUtils.getButtonCSS()}
`;
}
render() {
return html`
<style>
.primary {
background: var(--vpu-primary-bg-color);
color: var(--vpu-primary-text-color);
}
</style>
<button @click="${this.clickHandler}" class="button ${this.type}" ?disabled="${this.disabled}">
${this.value} <vpu-mini-spinner style="display: ${this.spinner ? "inline" : "none"}"></vpu-mini-spinner>
</button>
......
......@@ -125,7 +125,7 @@ class VpuCommonDemo extends VPULitElement {
<div class="content">
<h2>Button</h2>
<div class="control">
<vpu-button value="Load" @click="${this.buttonClickHandler}" type="primary"></vpu-button>
<vpu-button value="Load" @click="${this.buttonClickHandler}" type="is-primary"></vpu-button>
</div>
</div>
<div class="content">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment