mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Tabindex should be a number not a string
This commit is contained in:
parent
43b3029d50
commit
89bd587dc2
23 changed files with 24 additions and 24 deletions
|
@ -69,7 +69,7 @@
|
||||||
export let href = undefined;
|
export let href = undefined;
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Specify the `type` attribute for the button element */
|
/** Specify the `type` attribute for the button element */
|
||||||
export let type = "button";
|
export let type = "button";
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
export let filteredRowIds = [];
|
export let filteredRowIds = [];
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtain a reference to the input HTML element
|
* Obtain a reference to the input HTML element
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
export let role = "button";
|
export let role = "button";
|
||||||
|
|
||||||
/** Specify `tabindex` attribute */
|
/** Specify `tabindex` attribute */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Set an id for the input element */
|
/** Set an id for the input element */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
|
|
||||||
/** Specify `tabindex` attribute */
|
/** Specify `tabindex` attribute */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Set an id for the input element */
|
/** Set an id for the input element */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
export let label = false;
|
export let label = false;
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Set an id for the top-level element */
|
/** Set an id for the top-level element */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
export let tileCollapsedLabel = "";
|
export let tileCollapsedLabel = "";
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Set an id for the top-level div element */
|
/** Set an id for the top-level div element */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
export let value = "";
|
export let value = "";
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Specify the ARIA label for the radio tile checkmark icon */
|
/** Specify the ARIA label for the radio tile checkmark icon */
|
||||||
export let iconDescription = "Tile checkmark";
|
export let iconDescription = "Tile checkmark";
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
export let value = "value";
|
export let value = "value";
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/** Specify the ARIA label for the selectable tile checkmark icon */
|
/** Specify the ARIA label for the selectable tile checkmark icon */
|
||||||
export let iconDescription = "Tile checkmark";
|
export let iconDescription = "Tile checkmark";
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
export let iconName = "";
|
export let iconName = "";
|
||||||
|
|
||||||
/** Set the button tabindex */
|
/** Set the button tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the tooltip
|
* Set an id for the tooltip
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
export let href = "#main-content";
|
export let href = "#main-content";
|
||||||
|
|
||||||
/** Specify the tabindex */
|
/** Specify the tabindex */
|
||||||
export let tabindex = "0";
|
export let tabindex = 0;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
|
|
4
types/Button/Button.svelte.d.ts
vendored
4
types/Button/Button.svelte.d.ts
vendored
|
@ -90,9 +90,9 @@ export interface ButtonProps
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default 0
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the `type` attribute for the button element
|
* Specify the `type` attribute for the button element
|
||||||
|
|
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
|
@ -54,7 +54,7 @@ export interface ToolbarSearchProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtain a reference to the input HTML element
|
* Obtain a reference to the input HTML element
|
||||||
|
|
|
@ -55,7 +55,7 @@ export interface FileUploaderButtonProps
|
||||||
* Specify `tabindex` attribute
|
* Specify `tabindex` attribute
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the input element
|
* Set an id for the input element
|
||||||
|
|
|
@ -50,7 +50,7 @@ export interface FileUploaderDropContainerProps
|
||||||
* Specify `tabindex` attribute
|
* Specify `tabindex` attribute
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the input element
|
* Set an id for the input element
|
||||||
|
|
2
types/ListBox/ListBoxField.svelte.d.ts
vendored
2
types/ListBox/ListBoxField.svelte.d.ts
vendored
|
@ -21,7 +21,7 @@ export interface ListBoxFieldProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "-1"
|
* @default "-1"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override the default translation ids
|
* Override the default translation ids
|
||||||
|
|
|
@ -19,7 +19,7 @@ export interface StructuredListRowProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class StructuredListRow extends SvelteComponentTyped<
|
export default class StructuredListRow extends SvelteComponentTyped<
|
||||||
|
|
2
types/Tabs/Tab.svelte.d.ts
vendored
2
types/Tabs/Tab.svelte.d.ts
vendored
|
@ -26,7 +26,7 @@ export interface TabProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the top-level element
|
* Set an id for the top-level element
|
||||||
|
|
2
types/Tile/ExpandableTile.svelte.d.ts
vendored
2
types/Tile/ExpandableTile.svelte.d.ts
vendored
|
@ -55,7 +55,7 @@ export interface ExpandableTileProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the top-level div element
|
* Set an id for the top-level div element
|
||||||
|
|
2
types/Tile/RadioTile.svelte.d.ts
vendored
2
types/Tile/RadioTile.svelte.d.ts
vendored
|
@ -31,7 +31,7 @@ export interface RadioTileProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the ARIA label for the radio tile checkmark icon
|
* Specify the ARIA label for the radio tile checkmark icon
|
||||||
|
|
2
types/Tile/SelectableTile.svelte.d.ts
vendored
2
types/Tile/SelectableTile.svelte.d.ts
vendored
|
@ -37,7 +37,7 @@ export interface SelectableTileProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the ARIA label for the selectable tile checkmark icon
|
* Specify the ARIA label for the selectable tile checkmark icon
|
||||||
|
|
2
types/Tooltip/Tooltip.svelte.d.ts
vendored
2
types/Tooltip/Tooltip.svelte.d.ts
vendored
|
@ -50,7 +50,7 @@ export interface TooltipProps
|
||||||
* Set the button tabindex
|
* Set the button tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an id for the tooltip
|
* Set an id for the tooltip
|
||||||
|
|
2
types/UIShell/SkipToContent.svelte.d.ts
vendored
2
types/UIShell/SkipToContent.svelte.d.ts
vendored
|
@ -13,7 +13,7 @@ export interface SkipToContentProps
|
||||||
* Specify the tabindex
|
* Specify the tabindex
|
||||||
* @default "0"
|
* @default "0"
|
||||||
*/
|
*/
|
||||||
tabindex?: string;
|
tabindex?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SvelteKit attribute to enable data prefetching
|
* SvelteKit attribute to enable data prefetching
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue