All components must be written in TypeScript.
- All Event handlers must start with
on.
e.g.onClick,onSelect,onSelectionChange, .etc
All Events must pass an instance of theEvent-Class as single parameter. - When passing additional elements into a component, a slot should be used. This prop should contain a
ReactNodeor an array of ReactNodes (ReactNode[])
Follow the coding style as best you can when submitting code. Take note of naming conventions, separation of concerns, and formatting rules. Prettier runs automatically as a pre-commit hook.
All components should have associated Cypress component tests with a code coverage score of at least 80%.
We adhere to the Conventional Commits specification.
The commit message consists of three parts:
- header
- body (optional)
- footer (optional)
The commit header is the first line of the commit message. It consists of three parts: type, scope and description.
- It must be one of the following:
fix- a bug fix (note: this will indicate a release)feat- a new feature (note: this will indicate a release)docs- documentation only changesstyle- changes that do not affect the meaning of the coderefactor- a code change that neither fixes a bug nor adds a featureperf- a code change that improves performancetest- adding missing tests or fixing existing testschore- changes to the build process or auxiliary tools and libraries such as documentation generationrevert- revert to a commitWIP- work in progress
- It points to a specific component which is affected by the change. For example,
Button,CardandAnalyticalTable.
- Use the imperative present tense. Instead of "I added feature xy" or "Adding tests for" use "Add feature xy" or "Add tests for".
- It should be no more than 100 characters long.
After the commit header, there should be an empty line followed by the optional commit body.
- Describe the intention and reasoning of the change.
After the optional commit body, there should be an empty line followed by the optional footer.
- If the change introduces a breaking change, it should start with BREAKING CHANGE: followed by a description of the change.
BREAKING CHANGE: **AnalyticalTable:** "onColChange" was replaced by "onColumnsReordered"BREAKING CHANGE: drop IE11 support
- If the change fixes an issue reported on GitHub, add the following line to the commit message:
Fixes #<issueNumber>(e.g.Fixes #42)
- If the change implements a feature request on GitHub, add the following line to the commit message:
Closes #<issueNumber>(e.g.Closes #42)
fix(Text): correct focus with 'tab' key
The text should receive a correct focus outline
when the 'tab' key is pressed.
Fixes #42