Alasdair McLeay

Results 148 issues of Alasdair McLeay

In CONTRIBUTING.md we should document how we handle breaking changes to components, including renaming or deprecating components. e.g. when DateInput was renamed to DateField in #420 Options: - remove deprecated...

documentation
releasing
deprecation

Instead of using FONT_SIZE and LINE_HEIGHT directly in CSS, go via the font `@govuk-react/lib` `typography.font()` util. Review difference in SIZE_24 line height original todos: > FONT_SIZE and LINE_HEIGHT can be...

enhancement

Further to #949 defaultProps should be replaced with default values on functional components related https://github.com/facebook/react/pull/16210 https://github.com/yannickcr/eslint-plugin-react/issues/2396

enhancement

The `as` prop is hard to type. We can use https://github.com/kripod/react-polymorphic-types but still don't get `forwardedAs` or typed events. i.e. ```jsx console.log(event.target.href)} /> ``` would still throw an error. Using...

enhancement
DX

We use `React.Children.map` on these components: - Breadcrumbs - DocumentFooterMetadata - Footer.MetaLinks - Footer.NavigationLinks - ListNavigation We may want to swap this out, e.g. for the context API. This ticket...

enhancement

Add support for `govuk-main-wrapper--l`, which uses govuk-responsive-padding(8, "top");

enhancement

Now we have a Footer component, it should be the defaultProp for Page.footer Removed TODO: > // , // TODO: add Footer component once built

enhancement

I've not updated the Tabs stories to enable 'show code' as they are all fairly complex class based components. The stories should show fairly unopinionated usage of the components -...

documentation
storybook

> I think tests like this are giving false code coverage metrics and should be removed or updated to assert key features of a default render _Originally posted by @penx...

tests

e.g. ```jsx ``` should render a Radix Loader primitive styled to fit the GOV.UK design system.

discussion
feature