From 33eb0c4295fb53362ddc61cc936586cb249777ed Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Tue, 13 Aug 2024 21:44:23 +0200 Subject: [PATCH] feat(ui): harmonize CSS cursors. WF-35 Setup `cursor: pointer` for differents core components and also for differents parts of the application. --- src/ui/src/builder/BuilderHeader.vue | 1 + src/ui/src/builder/BuilderTreeBranch.vue | 1 + src/ui/src/builder/sharedStyles.css | 10 +++++++++- .../core_components/input/CoreCheckboxInput.vue | 5 +++++ .../src/core_components/input/CoreDateInput.vue | 1 + .../src/core_components/input/CoreRadioInput.vue | 7 ++++++- .../src/core_components/input/CoreRatingInput.vue | 1 + .../src/core_components/input/CoreTimeInput.vue | 1 + src/ui/src/core_components/layout/CoreSidebar.vue | 1 + src/ui/src/renderer/sharedStyles.css | 15 +++++++++++---- src/ui/src/wds/WdsDropdownInput.vue | 1 + 11 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/ui/src/builder/BuilderHeader.vue b/src/ui/src/builder/BuilderHeader.vue index 4c13288a7..d2bae0061 100644 --- a/src/ui/src/builder/BuilderHeader.vue +++ b/src/ui/src/builder/BuilderHeader.vue @@ -134,6 +134,7 @@ const customHandlerModalCloseAction: ModalAction = { } .syncHealth { + cursor: pointer; background: var(--builderHeaderBackgroundHoleColor); border-radius: 18px; padding-left: 16px; diff --git a/src/ui/src/builder/BuilderTreeBranch.vue b/src/ui/src/builder/BuilderTreeBranch.vue index 1ec6f34eb..4f68793fd 100644 --- a/src/ui/src/builder/BuilderTreeBranch.vue +++ b/src/ui/src/builder/BuilderTreeBranch.vue @@ -278,6 +278,7 @@ onMounted(() => { color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; + cursor: pointer; } .main.matching { diff --git a/src/ui/src/builder/sharedStyles.css b/src/ui/src/builder/sharedStyles.css index 97644191e..c26e9fccd 100644 --- a/src/ui/src/builder/sharedStyles.css +++ b/src/ui/src/builder/sharedStyles.css @@ -12,7 +12,7 @@ --builderSubtleSeparatorColor: rgba(0, 0, 0, 0.05); --builderIntenseSeparatorColor: rgba(0, 0, 0, 0.2); --builderSelectedColor: rgba(210, 234, 244, 0.8); - --builderIntenseSelectedColor: #6985FF; + --builderIntenseSelectedColor: #6985ff; --builderSubtleHighlightColor: rgba(0, 0, 0, 0.05); --builderSubtleHighlightColorSolid: #f2f2f2; --builderDisabledColor: rgb(180, 180, 180); @@ -106,6 +106,14 @@ textarea[variant="code"] { font-family: Consolas, monospace; } +input[type="button"], +input[type="submit"], +input[type="radio"], +input[type="reset"], +input[type="color"] { + cursor: pointer; +} + code { font-family: monospace; } diff --git a/src/ui/src/core_components/input/CoreCheckboxInput.vue b/src/ui/src/core_components/input/CoreCheckboxInput.vue index f77e40b46..2161b08d6 100644 --- a/src/ui/src/core_components/input/CoreCheckboxInput.vue +++ b/src/ui/src/core_components/input/CoreCheckboxInput.vue @@ -159,6 +159,11 @@ function getCheckedKeys() { font-size: 0.75rem; } +label, +input { + cursor: pointer; +} + input { margin-right: 8px; accent-color: var(--accentColor); diff --git a/src/ui/src/core_components/input/CoreDateInput.vue b/src/ui/src/core_components/input/CoreDateInput.vue index 5d0e17cb5..6489b139e 100644 --- a/src/ui/src/core_components/input/CoreDateInput.vue +++ b/src/ui/src/core_components/input/CoreDateInput.vue @@ -91,6 +91,7 @@ input { padding: 8.5px 12px 8.5px 12px; font-size: 0.875rem; outline: none; + cursor: text; } input:focus { diff --git a/src/ui/src/core_components/input/CoreRadioInput.vue b/src/ui/src/core_components/input/CoreRadioInput.vue index 42269e21a..adfa50d33 100644 --- a/src/ui/src/core_components/input/CoreRadioInput.vue +++ b/src/ui/src/core_components/input/CoreRadioInput.vue @@ -34,7 +34,7 @@