From f4520bcc2cbae8669489c9353648aea87fe9c6a1 Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Thu, 15 Dec 2022 14:48:21 +1300 Subject: [PATCH 01/10] hover style on dropdown --- res/css/components/views/elements/_FilterDropdown.pcss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/res/css/components/views/elements/_FilterDropdown.pcss b/res/css/components/views/elements/_FilterDropdown.pcss index 98808a8b1a1..9cb6bc1376d 100644 --- a/res/css/components/views/elements/_FilterDropdown.pcss +++ b/res/css/components/views/elements/_FilterDropdown.pcss @@ -32,12 +32,13 @@ limitations under the License. .mx_Dropdown_input { height: 24px; - background-color: $quinary-content; - border-color: $quinary-content; + background-color: transparent; + border-color: transparent; color: $secondary-content; border-radius: 4px; - &:focus { + &:focus, &:hover { + background-color: $quinary-content; border-color: $quinary-content; } } From f23d896b828783a94abba2471bd8feb567f486ed Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Thu, 15 Dec 2022 14:53:40 +1300 Subject: [PATCH 02/10] hover states --- .../settings/devices/_DeviceExpandDetailsButton.pcss | 8 ++++++++ .../views/settings/devices/_DeviceTypeIcon.pcss | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/res/css/components/views/settings/devices/_DeviceExpandDetailsButton.pcss b/res/css/components/views/settings/devices/_DeviceExpandDetailsButton.pcss index 4c9d787fdbe..32c3a0a4de1 100644 --- a/res/css/components/views/settings/devices/_DeviceExpandDetailsButton.pcss +++ b/res/css/components/views/settings/devices/_DeviceExpandDetailsButton.pcss @@ -23,12 +23,20 @@ limitations under the License. color: $secondary-content; --icon-transform: rotate(-90deg); + + &:hover { + background: $quinary-content; + } } .mx_DeviceExpandDetailsButton.mx_DeviceExpandDetailsButton_expanded { --icon-transform: rotate(0deg); background: $system; + + &:hover { + background: $quinary-content; + } } .mx_DeviceExpandDetailsButton_icon { diff --git a/res/css/components/views/settings/devices/_DeviceTypeIcon.pcss b/res/css/components/views/settings/devices/_DeviceTypeIcon.pcss index a092112d8a1..5a5937b1513 100644 --- a/res/css/components/views/settings/devices/_DeviceTypeIcon.pcss +++ b/res/css/components/views/settings/devices/_DeviceTypeIcon.pcss @@ -55,7 +55,7 @@ limitations under the License. box-sizing: border-box; padding: $spacing-4; - border: 1px solid $system; + border: 1px solid $quinary-content; border-radius: 50%; background-color: $background; From e8db65323daeb6f188dddb6152987d676045e1e6 Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Thu, 15 Dec 2022 14:59:43 +1300 Subject: [PATCH 03/10] device details spacing --- .../views/settings/devices/_DeviceDetails.pcss | 9 +++++---- .../views/settings/shared/_SettingsSubsection.pcss | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/res/css/components/views/settings/devices/_DeviceDetails.pcss b/res/css/components/views/settings/devices/_DeviceDetails.pcss index 754ee439982..8c4aac6cbf2 100644 --- a/res/css/components/views/settings/devices/_DeviceDetails.pcss +++ b/res/css/components/views/settings/devices/_DeviceDetails.pcss @@ -22,18 +22,18 @@ limitations under the License. width: 100%; margin-top: $spacing-16; - padding: $spacing-16; + padding: $spacing-24; border-radius: 8px; border: 1px solid $quinary-content; } .mx_DeviceDetails_section { - padding-bottom: $spacing-16; - margin-bottom: $spacing-16; + padding-bottom: $spacing-20; + margin-bottom: $spacing-20; border-bottom: 1px solid $quinary-content; display: grid; - grid-gap: $spacing-16; + grid-gap: $spacing-24; justify-content: left; grid-template-columns: 100%; @@ -52,6 +52,7 @@ limitations under the License. font-size: $font-12px; color: $secondary-content; line-height: $font-14px; + margin-top: $spacing-4; } } diff --git a/res/css/components/views/settings/shared/_SettingsSubsection.pcss b/res/css/components/views/settings/shared/_SettingsSubsection.pcss index 2ba909aac1a..a2b3cd35bfa 100644 --- a/res/css/components/views/settings/shared/_SettingsSubsection.pcss +++ b/res/css/components/views/settings/shared/_SettingsSubsection.pcss @@ -23,7 +23,7 @@ limitations under the License. width: 100%; box-sizing: inherit; line-height: $font-24px; - margin-bottom: $spacing-32; + margin-bottom: $spacing-24; color: $secondary-content; } From c1a0cc2809d06afb02ef4cc7f6fee0c116dc2226 Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Thu, 15 Dec 2022 15:02:26 +1300 Subject: [PATCH 04/10] device details h3 -> h4 --- .../settings/devices/DeviceDetailHeading.tsx | 2 +- .../CurrentDeviceSection-test.tsx.snap | 6 +++--- .../DeviceDetailHeading-test.tsx.snap | 6 +++--- .../__snapshots__/DeviceDetails-test.tsx.snap | 18 +++++++++--------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/views/settings/devices/DeviceDetailHeading.tsx b/src/components/views/settings/devices/DeviceDetailHeading.tsx index d23ec871b56..a59a3edcf61 100644 --- a/src/components/views/settings/devices/DeviceDetailHeading.tsx +++ b/src/components/views/settings/devices/DeviceDetailHeading.tsx @@ -134,7 +134,7 @@ export const DeviceDetailHeading: React.FC = ({ device, saveDeviceName }) setIsEditing(false)} /> ) : (
- {device.display_name || device.device_id} + {device.display_name || device.device_id} setIsEditing(true)} diff --git a/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap index accfd108065..739f559ad40 100644 --- a/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap +++ b/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap @@ -13,11 +13,11 @@ HTMLCollection [ class="mx_DeviceDetailHeading" data-testid="device-detail-heading" > -

alices_device -

+