Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions src/components/NcButton/NcButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -802,35 +802,38 @@ export default {
align-items: center;
justify-content: center;

// Cursor pointer on element and all children
cursor: pointer;
& *,
span {
cursor: pointer;
}
border-radius: var(--button-radius);
transition-property: color, border-color, background-color;
transition-duration: 0.1s;
transition-timing-function: linear;

// Default button type
color: var(--color-primary-element-light-text);
background-color: var(--color-primary-element-light);

// Cursor pointer on element and all children
&,
& :deep(*) {
cursor: pointer;
}

// No outline feedback for focus. Handled with a toggled class in js (see data)
&:focus {
outline: none;
}

&:disabled {
cursor: default;
& * {
cursor: default;
}
opacity: $opacity_disabled;
// Gives a wash out effect
filter: saturate($opacity_normal);

& :deep(*) {
cursor: default;
}
}

// Default button type
color: var(--color-primary-element-light-text);
background-color: var(--color-primary-element-light);
&:hover:not(:disabled) {
background-color: var(--color-primary-element-light-hover);
}
Expand Down
Loading