aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/buttons
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): improve HomepageArmand Philippot2023-11-291-0/+2
| | | | | | | | | * move custom homepage components that does not require props to the MDX file (links should not need to be translated here but where they are defined) * move SEO title and meta desc to MDX file * make Page component the wrapper instead of using a React fragment * fix MDX module types
* refactor(components): rewrite Pagination componentArmand Philippot2023-11-111-0/+17
|
* refactor(components): rewrite Card componentArmand Philippot2023-11-111-1/+1
| | | | | | | | | | | | | * make the component more generic * merge `<Summary />` and `<Comment />` styles into card component to avoid repeating the same structure * remove most of the props to use composition However the CSS is a bit complex because of the two variants... Also, the component should be refactored when the CSS pseudo-class `:has` has enough support: the provider and the `cover` and `meta` props should be removed.
* refactor(components): rewrite Button and ButtonLink componentsArmand Philippot2023-10-2414-362/+478
| | | | | | | | | | | | | | 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-242-0/+2
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-207-62/+39
| | | | | | 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-193-3/+3
| | | | | | 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-232-8/+8
|
* chore(cards): use post title as link labelArmand Philippot2022-06-073-0/+19
|
* test: install and configure cypressArmand Philippot2022-06-022-2/+2
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* fix: improve help button accessibility with aria-pressedArmand Philippot2022-06-021-4/+8
|
* chore: complete Storybook storiesArmand Philippot2022-05-211-0/+14
|
* fix: close Ackee tooltip on button clickArmand Philippot2022-05-211-13/+22
| | | | | | | 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-171-1/+1
| | | | | * change animation on article card hover * change comments section alignment
* refactor(storybook): reorganize design systemArmand Philippot2022-04-204-21/+74
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-162-2/+10
| | | | | | | | 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 CommentForm componentArmand Philippot2022-04-153-8/+10
|
* chore: add a Summary componentArmand Philippot2022-04-122-3/+24
|
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-084-6/+23
| | | | | | | | 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 HelpButton componentArmand Philippot2022-04-063-5/+17
| | | | I also added a new shape to the button base.
* chore: add a back to top componentArmand Philippot2022-04-015-7/+64
|
* chore: add a button link componentArmand Philippot2022-03-314-0/+127
|
* chore: add a button componentArmand Philippot2022-03-314-0/+345