aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/buttons
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-115-249/+0
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* refactor(components): rewrite HelpButton componentArmand Philippot2023-11-118-71/+84
|
* refactor(components): rewrite BackToTop componentArmand Philippot2023-11-118-113/+131
| | | | | * replace `link` prop with `anchor` prop * add a `label` prop to let consumer handle the accessible name
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-243-10/+6
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* refactor(components): rewrite Heading componentArmand Philippot2023-10-241-7/+10
| | | | | | | | | * remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
* refactor(components): rewrite Button and ButtonLink componentsArmand Philippot2023-10-245-20/+34
| | | | | | | | | | | | | | Both: * move styles to Sass placeholders Button: * add `isPressed` prop to Button * add `isLoading` prop to Button (to differentiate state from disabled) ButtonLink: * replace `external` prop with `isExternal` prop * replace `href` prop with `to` prop
* build: convert project to esmArmand Philippot2023-10-243-0/+3
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-2010-27/+22
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-1910-15/+13
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-1/+1
|
* chore: add aria hidden attribute to SVG iconsArmand Philippot2022-06-071-1/+1
|
* test: install and configure cypressArmand Philippot2022-06-023-3/+3
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* fix: improve help button accessibility with aria-pressedArmand Philippot2022-06-021-1/+4
|
* chore: complete Storybook storiesArmand Philippot2022-05-214-24/+4
|
* fix: close Ackee tooltip on button clickArmand Philippot2022-05-211-4/+8
| | | | | | | The tooltip was closing and reopening on click because of a conflict between the button event and the hook useClickOutside. By checking that the event target is not the button, the tooltip is now closing as expected.
* chore: adjust articles stylesArmand Philippot2022-05-172-58/+30
| | | | | * change animation on article card hover * change comments section alignment
* chore: listen scroll to hide/show back to top buttonArmand Philippot2022-05-171-2/+2
|
* chore: add a LegalNotice pageArmand Philippot2022-05-031-1/+3
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-203-16/+96
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-163-13/+11
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a Widget componentArmand Philippot2022-04-152-10/+11
|
* chore: add a MainNav componentArmand Philippot2022-04-144-203/+0
|
* chore: add a Footer componentArmand Philippot2022-04-122-5/+12
|
* chore: add a MainNavButton componentArmand Philippot2022-04-124-0/+203
| | | | | I also move the active state from the hamburger to this pseudo-button. It makes more sense that the button handles the icon shape.
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-084-15/+18
| | | | | | | | I was using the FunctionComponent type for some component that do not use children. So I change the type to VoidFunctionComponent to avoid mistakes. I also rename all the "classes" or "additionalClasses" props to "className" to keep consistency between each components.
* chore: add a SelectWithTooltip componentArmand Philippot2022-04-072-3/+40
|
* chore: add a HeadingButton componentArmand Philippot2022-04-074-0/+214
|
* chore: add a HelpButton componentArmand Philippot2022-04-064-0/+75
| | | | I also added a new shape to the button base.
* chore: add a back to top componentArmand Philippot2022-04-014-0/+140