chore: modal and dropdown improvement (#3332)
* dev: dropdown key down custom hook added * chore: plane ui dropdowns updated * chore: cycle and module tab index added in modals * chore: view and page tab index added in modals * chore: issue modal tab indexing added * chore: project modal tab indexing added * fix: build fix * build-error: build error in pages new structure and reverted back to old page structure --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
This commit is contained in:
parent
0e49d616b7
commit
0f99fb302b
30 changed files with 1300 additions and 717 deletions
|
|
@ -59,6 +59,7 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
setActiveProject(val);
|
||||
}}
|
||||
buttonVariant="background-with-text"
|
||||
tabIndex={7}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
@ -89,6 +90,7 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
inputSize="md"
|
||||
onChange={onChange}
|
||||
hasError={Boolean(errors?.name)}
|
||||
tabIndex={1}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
@ -106,6 +108,7 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
hasError={Boolean(errors?.description)}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
tabIndex={2}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
@ -124,6 +127,7 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
buttonVariant="border-with-text"
|
||||
placeholder="Start date"
|
||||
maxDate={maxDate ?? undefined}
|
||||
tabIndex={3}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -140,6 +144,7 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
buttonVariant="border-with-text"
|
||||
placeholder="End date"
|
||||
minDate={minDate}
|
||||
tabIndex={4}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -149,10 +154,10 @@ export const CycleForm: React.FC<Props> = (props) => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-100 pt-5 ">
|
||||
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
|
||||
<Button variant="neutral-primary" size="sm" onClick={handleClose} tabIndex={5}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
|
||||
<Button variant="primary" size="sm" type="submit" loading={isSubmitting} tabIndex={6}>
|
||||
{data ? (isSubmitting ? "Updating" : "Update cycle") : isSubmitting ? "Creating" : "Create cycle"}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue