Skip to content

Commit 5e6556e

Browse files
committed
fix(NcButton): force cursor pointer
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
1 parent b5de067 commit 5e6556e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/components/NcButton/NcButton.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -802,25 +802,25 @@ export default {
802802
align-items: center;
803803
justify-content: center;
804804
805-
// Cursor pointer on element and all children
806-
cursor: pointer;
807-
& *,
808-
span {
809-
cursor: pointer;
810-
}
811805
border-radius: var(--button-radius);
812806
transition-property: color, border-color, background-color;
813807
transition-duration: 0.1s;
814808
transition-timing-function: linear;
815809
810+
// Cursor pointer on element and all children
811+
&,
812+
& :deep(*) {
813+
cursor: pointer;
814+
}
815+
816816
// No outline feedback for focus. Handled with a toggled class in js (see data)
817817
&:focus {
818818
outline: none;
819819
}
820820
821821
&:disabled {
822822
cursor: default;
823-
& * {
823+
& :deep(*) {
824824
cursor: default;
825825
}
826826
opacity: $opacity_disabled;
@@ -829,8 +829,10 @@ export default {
829829
}
830830
831831
// Default button type
832-
color: var(--color-primary-element-light-text);
833-
background-color: var(--color-primary-element-light);
832+
& {
833+
color: var(--color-primary-element-light-text);
834+
background-color: var(--color-primary-element-light);
835+
}
834836
&:hover:not(:disabled) {
835837
background-color: var(--color-primary-element-light-hover);
836838
}

0 commit comments

Comments
 (0)