Skip to content

Commit

Permalink
test(tooltip): visual regression tests for tooltip
Browse files Browse the repository at this point in the history
* feat: component states testing wip

* refactor: continue to try

* test(tooltip): visual regression tests for tooltip

* chore: editorconfig updated for all files

* chore(storybook): canvas size set for centered layouts

* refactor(tooltip): linter fix

* docs(input): focus state interaction test removed

* chore: playground template changes reverted back

* docs: input story changes reverted back

* refactor: remove console.log

* docs(tooltip): interaction test for first 2 stories

* docs(button): empty space in play function is not allowed

* chore: clean dependencies

* docs: we need more space to fit side tooltips

* docs: fix for font loading issue on chrome

* docs(button): more variants added for hover states

* docs(button): hover state stories reverted back

css hover can not be emulated with current capabilities of chromatic
we'll do further investigation for the solutions in a seperate issue
  • Loading branch information
muratcorlu authored Aug 3, 2022
1 parent e066697 commit b04df4e
Show file tree
Hide file tree
Showing 11 changed files with 1,685 additions and 510 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[*.{js,jsx,ts,tsx,vue,mdx}]
[*.*]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
Expand Down
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
},
'@storybook/addon-essentials',
'@storybook/addon-a11y',
'@storybook/addon-interactions',
],
features: {
postcss: false,
Expand Down
9 changes: 9 additions & 0 deletions .storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<style>
.sb-main-centered #root-inner {
width: 1000px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
}
</style>
9 changes: 5 additions & 4 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<link rel="preload" href="./assets/rubik-latin-variable-wghtOnly-normal.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./themes/default.css" />
<script type="module" src="./baklava.js"></script>
<style>
.innerZoomElementWrapper > * {
vertical-align: top;
}
</style>
.innerZoomElementWrapper > * {
vertical-align: top;
}
</style>
2 changes: 1 addition & 1 deletion docs/contributing.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Description } from '@storybook/addon-docs/blocks';
import { Meta, Description } from '@storybook/addon-docs';
import Contributing from '../CONTRIBUTING.md';

<Meta
Expand Down
2 changes: 1 addition & 1 deletion docs/welcome.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Description } from '@storybook/addon-docs/blocks';
import { Meta, Description } from '@storybook/addon-docs';
import Readme from '../README.md';

<Meta
Expand Down
Loading

0 comments on commit b04df4e

Please sign in to comment.