v23

Orbit Migration Guide v23

Breaking changes

Tokens

Colors

Elevations

Required node version

Removal of ariaLabel prop in NavigationBar

Removal of aria-label default value in TabList

Removal of Tooltip prop in Checkbox and Radio

Title prop for Skeleton component

import Skeleton from "@kiwicom/orbit-components/lib/Skeleton";
<Skeleton />;
import Skeleton from "@kiwicom/orbit-components/lib/Skeleton";
<Skeleton title="Loading" />;
intl.formatMessage({
id: "common.loading",
defaultMessage: "Loading",
});

Required prop labelRemove in InputFile

import InputFile from "@kiwicom/orbit-components/lib/InputFile";
<InputFile fileName="document.pdf" onRemoveFile={handleRemove} />;
import InputFile from "@kiwicom/orbit-components/lib/InputFile";
<InputFile fileName="document.pdf" onRemoveFile={handleRemove} labelRemove="Remove file" />;
intl.formatMessage({
id: "common.screenreader.remove_file.button",
defaultMessage: "Remove file",
});

Required prop labelClear in InputSelect

import InputSelect from "@kiwicom/orbit-components/lib/InputSelect";
<InputSelect options={options} />;
import InputSelect from "@kiwicom/orbit-components/lib/InputSelect";
<InputSelect options={options} labelClear="Clear value" />;
intl.formatMessage({
id: "common.screenreader.clear_value.button",
defaultMessage: "Clear value",
});

Prop name change in Stepper and StepperStateless

<Stepper ariaLabelledBy="label-id" />
<StepperStateless ariaLabelledBy="label-id" />
<Stepper ariaLabelledby="label-id" />
<StepperStateless ariaLabelledby="label-id" />

Codemod

npx jscodeshift -t https://raw.githubusercontent.com/kiwicom/orbit/master/packages/orbit-components/transforms/transforms-v23.js --parser=tsx --extensions=ts,tsx <pathToYourCode>