diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-02-27 10:58:16 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-25 10:50:45 +0100 |
commit | 52706213d37a3ac6df6568de7f6b283507de56d4 (patch) | |
tree | fb06635e1e03ee0950d6add35bbf66890b62260f /core/css/inputs.scss | |
parent | 3427653676e7ef985778794df27a6fd5e2bdaa11 (diff) | |
download | nextcloud-server-52706213d37a3ac6df6568de7f6b283507de56d4.tar.gz nextcloud-server-52706213d37a3ac6df6568de7f6b283507de56d4.zip |
Fix cursor on click inputs and their descendants
The cursor in click inputs is shown as a pointer to convey that it can
be interacted with. However, in those click inputs that can have
descendants, like buttons, the descendants may not inherit the cursor
from it (for example, a "strong" element would, but a "span" element
would not), which causes a pointer cursor to be shown on some areas of
the button and a different one to be shown on other areas. To prevent
that now all the descendants of click inputs that can have descendants
use a pointer cursor.
On the other hand, if a click input is disabled it can not be interacted
with it, so now disabled click inputs as well as their descendants show
a default cursor instead of a pointer cursor in that case.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/css/inputs.scss')
-rw-r--r-- | core/css/inputs.scss | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 175790b5f30..87dc6a44806 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -178,6 +178,22 @@ input[type='reset'] { cursor: pointer; box-sizing: border-box; background-color: var(--color-background-dark); + + &:disabled { + cursor: default; + } +} +select, +button, .button { + * { + cursor: pointer; + } + + &:disabled { + * { + cursor: default; + } + } } /* Buttons */ |