Skip to content

Commit

Permalink
Storybook Update: Annotations display redesign (#9835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rancher Storybook committed Oct 5, 2023
1 parent 26999fa commit 11257df
Show file tree
Hide file tree
Showing 68 changed files with 93 additions and 52 deletions.
1 change: 1 addition & 0 deletions docs/dialog0.24a5f5f9.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/dialog0.b1764e4b.iframe.bundle.js

This file was deleted.

3 changes: 0 additions & 3 deletions docs/dialog10.c3c55f42.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog10.c3c55f42.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog10.fba7042a.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog10.fba7042a.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog12.04003db1.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog12.04003db1.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog12.4829041d.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog12.4829041d.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog14.494667ef.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog14.494667ef.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog14.d5eece1a.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog14.d5eece1a.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog16.7bd7aa20.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog16.7bd7aa20.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog16.e5c3d6f5.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog16.e5c3d6f5.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/dialog18.41098159.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog18.41098159.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog18.7257140f.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog18.7257140f.iframe.bundle.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions docs/dialog2.1bddedd8.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog2.1bddedd8.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog2.71d70b71.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog2.71d70b71.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog20.16773e85.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog20.16773e85.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog20.ec1e0bd0.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog20.ec1e0bd0.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/dialog22.0eddba3c.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog22.0eddba3c.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog22.fa7c879e.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog22.fa7c879e.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog24.250698ab.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog24.250698ab.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/dialog24.c7d5b8ab.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog24.c7d5b8ab.iframe.bundle.js.map

This file was deleted.

1 change: 1 addition & 0 deletions docs/dialog26.0991e1d5.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/dialog26.41a7dbc8.iframe.bundle.js

This file was deleted.

3 changes: 0 additions & 3 deletions docs/dialog4.c05547df.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/dialog4.c05547df.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/dialog4.f646d62d.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dialog4.f646d62d.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/dialog6.38059c43.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/dialog6.55f2f774.iframe.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/dialog8.5837b8ea.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/dialog8.9d4c9cca.iframe.bundle.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,4 @@



window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"**/Welcome.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)Welcome\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./stories","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./stories","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.7f946721.iframe.bundle.js"></script><script src="vendors~main.31d6fdcb.iframe.bundle.js"></script><script src="main.fcdaf0a8.iframe.bundle.js"></script></body></html>
window['STORIES'] = [{"titlePrefix":"","directory":"./stories","files":"**/Welcome.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)Welcome\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./stories","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./stories","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.e754bcd3.iframe.bundle.js"></script><script src="vendors~main.31d6fdcb.iframe.bundle.js"></script><script src="main.1b4326cb.iframe.bundle.js"></script></body></html>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.1b4326cb.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/main.fcdaf0a8.iframe.bundle.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generatedAt":1696498756980,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/vue":{"version":"6.5.16"},"storybook-auto-events":{"version":"0.1.1"}},"framework":{"name":"vue"},"addons":{"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-essentials":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"},"storybook-dark-mode":{"version":"1.1.2"},"@storybook/addon-actions":{"version":"6.5.16"}}}
{"generatedAt":1696501451860,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/vue":{"version":"6.5.16"},"storybook-auto-events":{"version":"0.1.1"}},"framework":{"name":"vue"},"addons":{"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-essentials":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"},"storybook-dark-mode":{"version":"1.1.2"},"@storybook/addon-actions":{"version":"6.5.16"}}}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions docs/styles/themes/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@

$drag-over: #DCDEE7;

// The library that decorates the code blocks in CodeMirror uses the same colours for light and dark themes.
// This causes a contrast and accessibility issues.
// To fix the issues we have added new colors to the code blocks in CodeMirror for light and dark themes.
$cm-meta: #FFFFFF;
$cm-string: #5CE6FF;
$cm-number: #63F7C1;
$cm-keyword: #FF9C9C;
$cm-atom: #CC8DBF;
$cm-comment: #E78957;

// Status colors Yaml variables
--cm-meta: #{$cm-meta};
--cm-string: #{$cm-string};
--cm-number: #{$cm-number};
--cm-keyword: #{$cm-keyword};
--cm-atom: #{$cm-atom};
--cm-comment: #{$cm-comment};

--default : #{$dark};
--default-text : #{$light};
--default-hover-bg : #{darken($dark, 10%)};
Expand Down Expand Up @@ -211,4 +229,5 @@

--product-icon : #{$lighter};
--product-icon-active : #{$lightest};
--annotations-hover-bg : #{$darkest};
}
22 changes: 21 additions & 1 deletion docs/styles/themes/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ $selected: rgba(#3D98D3, .5);

$drag-over: #DCDEE7;


// The library that decorates the code blocks in CodeMirror uses the same colours for light and dark themes.
// This causes a contrast and accessibility issues.
// To fix the issues we have added new colors to the code blocks in CodeMirror for light and dark themes.
$cm-meta: #141419;
$cm-string: #00529F;
$cm-number: #005E3B;
$cm-keyword: #B94545;
$cm-atom: #921E80;
$cm-comment: #8F5536;

BODY, .theme-light {

--primary : #{$primary};
Expand All @@ -55,6 +66,14 @@ BODY, .theme-light {
--primary-light-bg : #{rgba($primary, 0.05)};


// Status colors Yaml variables
--cm-meta: #{$cm-meta};
--cm-string: #{$cm-string};
--cm-number: #{$cm-number};
--cm-keyword: #{$cm-keyword};
--cm-atom: #{$cm-atom};
--cm-comment: #{$cm-comment};

.text-primary {
color: var(--primary) !important;
}
Expand Down Expand Up @@ -86,7 +105,6 @@ BODY, .theme-light {
--link-light-bg : #{rgba($link, 0.05)};



.text-link {
color: var(--link) !important;
}
Expand Down Expand Up @@ -541,4 +559,6 @@ BODY, .theme-light {

--product-icon : #{$darker};
--product-icon-active : #{$darkest};

--annotations-hover-bg : #{$lighter};
}
2 changes: 2 additions & 0 deletions docs/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ generic:
=1 {Matches 1 of {total, number}: "{sample}"}
other {Matches {matched, number} of {total, number}, including "{sample}"}
}
copyValue: Copy value
valueCopied: Value copied!

locale:
en-us: English
Expand Down

0 comments on commit 11257df

Please sign in to comment.