From 616cfabd70a5cc875ee2859ea26f1e26d1bddfaa Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Fri, 25 Apr 2025 18:54:45 +0700 Subject: [PATCH] feat: enhance button accessibility by adding cursor-pointer class and type attributes in CreatePipelinePage and AddDataSource component --- .../(sidebar)/data-pipeline/create/page.tsx | 2 +- frontend/app/(sidebar)/data-pipeline/page.tsx | 2 +- .../components/pipeline/add-data-source.tsx | 25 ++++++++++++++----- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/frontend/app/(sidebar)/data-pipeline/create/page.tsx b/frontend/app/(sidebar)/data-pipeline/create/page.tsx index 7f20f31..a191786 100644 --- a/frontend/app/(sidebar)/data-pipeline/create/page.tsx +++ b/frontend/app/(sidebar)/data-pipeline/create/page.tsx @@ -8,7 +8,7 @@ export default function CreatePipelinePage() {
- diff --git a/frontend/app/(sidebar)/data-pipeline/page.tsx b/frontend/app/(sidebar)/data-pipeline/page.tsx index 1e36353..a5bf45d 100644 --- a/frontend/app/(sidebar)/data-pipeline/page.tsx +++ b/frontend/app/(sidebar)/data-pipeline/page.tsx @@ -48,7 +48,7 @@ export default function DataPipelinePage() {
- diff --git a/frontend/components/pipeline/add-data-source.tsx b/frontend/components/pipeline/add-data-source.tsx index cc655cb..90ea018 100644 --- a/frontend/components/pipeline/add-data-source.tsx +++ b/frontend/components/pipeline/add-data-source.tsx @@ -78,6 +78,7 @@ export function AddDataSource() { variant="outline" size="sm" className="text-destructive" + type="button" > Remove Source @@ -106,9 +107,7 @@ export function AddDataSource() {

Drag and drop your file here, or click to browse

- +

@@ -121,6 +120,7 @@ export function AddDataSource() { variant="outline" size="sm" className="text-destructive" + type="button" > Remove Source @@ -167,6 +167,7 @@ export function AddDataSource() { - -