Tabindex should be a number not a string

This commit is contained in:
Bilux 2022-10-15 13:52:05 +01:00 committed by GitHub
commit 89bd587dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 24 additions and 24 deletions

View file

@ -69,7 +69,7 @@
export let href = undefined;
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/** Specify the `type` attribute for the button element */
export let type = "button";

View file

@ -35,7 +35,7 @@
export let filteredRowIds = [];
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/**
* Obtain a reference to the input HTML element

View file

@ -37,7 +37,7 @@
export let role = "button";
/** Specify `tabindex` attribute */
export let tabindex = "0";
export let tabindex = 0;
/** Set an id for the input element */
export let id = "ccs-" + Math.random().toString(36);

View file

@ -36,7 +36,7 @@
export let disabled = false;
/** Specify `tabindex` attribute */
export let tabindex = "0";
export let tabindex = 0;
/** Set an id for the input element */
export let id = "ccs-" + Math.random().toString(36);

View file

@ -6,7 +6,7 @@
export let label = false;
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
</script>
<!-- svelte-ignore a11y-mouse-events-have-key-events -->

View file

@ -12,7 +12,7 @@
export let disabled = false;
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/** Set an id for the top-level element */
export let id = "ccs-" + Math.random().toString(36);

View file

@ -24,7 +24,7 @@
export let tileCollapsedLabel = "";
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/** Set an id for the top-level div element */
export let id = "ccs-" + Math.random().toString(36);

View file

@ -12,7 +12,7 @@
export let value = "";
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/** Specify the ARIA label for the radio tile checkmark icon */
export let iconDescription = "Tile checkmark";

View file

@ -15,7 +15,7 @@
export let value = "value";
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
/** Specify the ARIA label for the selectable tile checkmark icon */
export let iconDescription = "Tile checkmark";

View file

@ -42,7 +42,7 @@
export let iconName = "";
/** Set the button tabindex */
export let tabindex = "0";
export let tabindex = 0;
/**
* Set an id for the tooltip

View file

@ -3,7 +3,7 @@
export let href = "#main-content";
/** Specify the tabindex */
export let tabindex = "0";
export let tabindex = 0;
</script>
<a

View file

@ -90,9 +90,9 @@ export interface ButtonProps
/**
* Specify the tabindex
* @default "0"
* @default 0
*/
tabindex?: string;
tabindex?: number;
/**
* Specify the `type` attribute for the button element

View file

@ -54,7 +54,7 @@ export interface ToolbarSearchProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Obtain a reference to the input HTML element

View file

@ -55,7 +55,7 @@ export interface FileUploaderButtonProps
* Specify `tabindex` attribute
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Set an id for the input element

View file

@ -50,7 +50,7 @@ export interface FileUploaderDropContainerProps
* Specify `tabindex` attribute
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Set an id for the input element

View file

@ -21,7 +21,7 @@ export interface ListBoxFieldProps
* Specify the tabindex
* @default "-1"
*/
tabindex?: string;
tabindex?: number;
/**
* Override the default translation ids

View file

@ -19,7 +19,7 @@ export interface StructuredListRowProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
}
export default class StructuredListRow extends SvelteComponentTyped<

View file

@ -26,7 +26,7 @@ export interface TabProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Set an id for the top-level element

View file

@ -55,7 +55,7 @@ export interface ExpandableTileProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Set an id for the top-level div element

View file

@ -31,7 +31,7 @@ export interface RadioTileProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Specify the ARIA label for the radio tile checkmark icon

View file

@ -37,7 +37,7 @@ export interface SelectableTileProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Specify the ARIA label for the selectable tile checkmark icon

View file

@ -50,7 +50,7 @@ export interface TooltipProps
* Set the button tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* Set an id for the tooltip

View file

@ -13,7 +13,7 @@ export interface SkipToContentProps
* Specify the tabindex
* @default "0"
*/
tabindex?: string;
tabindex?: number;
/**
* SvelteKit attribute to enable data prefetching