Skip to content

Commit

Permalink
Add extra story options
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 30, 2023
1 parent 21e33ba commit 4ec193e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.1.27-prerelease...HEAD)

### Added

- Buttons can now have `buttonType` which sets the `type` attribute for `<button>` elements

### Changed

- Changed style of filters element to match with accent colour

### Deprecated
### Removed

- Removed `title` attribute from tabs and `aria-label` from HTML

### Fixed

- Fixed HTML validation errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import macroOptions from "./macro-options.json";
const argTypes = {
label: { control: "text" },
headingLevel: { control: { type: "number", min: 1, max: 6 } },
headingSize: { control: "inline-radio", options: ["s", "m", "l", "xl"] },
headingSize: {
control: "inline-radio",
options: ["xs", "s", "m", "l", "xl"],
},
id: { control: "text" },
name: { control: "text" },
hint: { control: "text" },
Expand Down
5 changes: 4 additions & 1 deletion src/nationalarchives/components/select/select.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import macroOptions from "./macro-options.json";
const argTypes = {
label: { control: "text" },
headingLevel: { control: { type: "number", min: 1, max: 6 } },
headingSize: { control: "inline-radio", options: ["s", "m", "l", "xl"] },
headingSize: {
control: "inline-radio",
options: ["xs", "s", "m", "l", "xl"],
},
id: { control: "text" },
name: { control: "text" },
hint: { control: "text" },
Expand Down
5 changes: 4 additions & 1 deletion src/nationalarchives/components/textarea/textarea.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import macroOptions from "./macro-options.json";
const argTypes = {
label: { control: "text" },
headingLevel: { control: { type: "number", min: 1, max: 6 } },
headingSize: { control: "inline-radio", options: ["s", "m", "l", "xl"] },
headingSize: {
control: "inline-radio",
options: ["xs", "s", "m", "l", "xl"],
},
id: { control: "text" },
name: { control: "text" },
hint: { control: "text" },
Expand Down

0 comments on commit 4ec193e

Please sign in to comment.