From 93b98f760cf4ae31c73d57a92ee4a9aca29ca5fc Mon Sep 17 00:00:00 2001 From: findthelorax Date: Thu, 23 Apr 2026 15:30:51 -0400 Subject: [PATCH] changed font casing, revamped opacity slider and improved accessibility with aria labels and keyboard navigation --- .github/workflows/docker-publish.yml | 6 +-- .../modals/GroupRectModal.module.css | 43 +++++++++++++++++++ .../src/components/modals/GroupRectModal.tsx | 33 +++++++++++--- 3 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 frontend/src/components/modals/GroupRectModal.module.css diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index fe0a4e8..600ae67 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -15,13 +15,13 @@ jobs: strategy: matrix: include: - - image: ghcr.io/${{ github.repository_owner }}/homelable-backend + - image: ghcr.io/pouzor/homelable-backend dockerfile: Dockerfile.backend build_args: "" - - image: ghcr.io/${{ github.repository_owner }}/homelable-frontend + - image: ghcr.io/pouzor/homelable-frontend dockerfile: Dockerfile.frontend build_args: "" - - image: ghcr.io/${{ github.repository_owner }}/homelable-frontend-standalone + - image: ghcr.io/pouzor/homelable-frontend-standalone dockerfile: Dockerfile.frontend build_args: "VITE_STANDALONE=true" diff --git a/frontend/src/components/modals/GroupRectModal.module.css b/frontend/src/components/modals/GroupRectModal.module.css new file mode 100644 index 0000000..5670a84 --- /dev/null +++ b/frontend/src/components/modals/GroupRectModal.module.css @@ -0,0 +1,43 @@ +/* Custom colored slider track for accent color */ +.slider-accent::-webkit-slider-runnable-track { + height: 4px; + background: #00d4ff; + border-radius: 2px; +} +.slider-accent::-moz-range-track { + height: 4px; + background: #00d4ff; + border-radius: 2px; +} +.slider-accent::-ms-fill-lower, +.slider-accent::-ms-fill-upper { + background: #00d4ff; + border-radius: 2px; +} + +/* Ensure the slider bar is visible on dark backgrounds */ +.slider-thumb-sm { + background: transparent; +} +/* Custom slider thumb for smaller circle */ +.slider-thumb-sm::-webkit-slider-thumb { + width: 10px; + height: 10px; + border-radius: 50%; + background: #00d4ff; + border: 2px solid #21262d; +} +.slider-thumb-sm::-moz-range-thumb { + width: 10px; + height: 10px; + border-radius: 50%; + background: #00d4ff; + border: 2px solid #21262d; +} +.slider-thumb-sm::-ms-thumb { + width: 10px; + height: 10px; + border-radius: 50%; + background: #00d4ff; + border: 2px solid #21262d; +} \ No newline at end of file diff --git a/frontend/src/components/modals/GroupRectModal.tsx b/frontend/src/components/modals/GroupRectModal.tsx index 209b57b..fb5faa0 100644 --- a/frontend/src/components/modals/GroupRectModal.tsx +++ b/frontend/src/components/modals/GroupRectModal.tsx @@ -7,6 +7,7 @@ import { Label } from '@/components/ui/label' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import type { TextPosition } from '@/types' import { hexToRgba, rgbaToHex8 } from '@/utils/colorUtils' +import styles from './GroupRectModal.module.css' // Import custom CSS for slider thumb export type BorderStyle = 'solid' | 'dashed' | 'dotted' | 'double' | 'none' @@ -138,9 +139,13 @@ export function GroupRectModal({ open, onClose, onSubmit, onDelete, initial, tit
set('z_order', v !== null ? Number(v) : 1)}> - + + +