You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to: <%=h.src()%>/packages/components/<%=h.changeCase.lower(h.inflection.pluralize(component_type))%>/<%=h.changeCase.lower(h.inflection.dasherize(name))%>/<%=h.changeCase.lower(component_type).charAt(0)%>-<%=h.changeCase.lower(h.inflection.dasherize(name))%>.js
2
+
to: <%=h.src()%>/components/<%=h.changeCase.lower(h.inflection.pluralize(component_type))%>/<%=h.changeCase.lower(h.inflection.dasherize(name))%>/<%=h.changeCase.lower(component_type).charAt(0)%>-<%=h.changeCase.lower(h.inflection.dasherize(name))%>.js
Copy file name to clipboardExpand all lines: packages/kaizen-cg/_templates/component/new/component.stories.js
+7-5
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,15 @@
1
1
---
2
-
to: <%=h.src()%>/packages/components/<%=h.changeCase.lower(h.inflection.pluralize(component_type))%>/<%=h.changeCase.lower(h.inflection.dasherize(name))%>/<%=h.changeCase.lower(component_type).charAt(0)%>-<%=h.changeCase.lower(h.inflection.dasherize(name))%>.stories.js
2
+
to: <%=h.src()%>/components/<%=h.changeCase.lower(h.inflection.pluralize(component_type))%>/<%=h.changeCase.lower(h.inflection.dasherize(name))%>/<%=h.changeCase.lower(component_type).charAt(0)%>-<%=h.changeCase.lower(h.inflection.dasherize(name))%>.stories.js
Copy file name to clipboardExpand all lines: packages/kaizen-core/README.md
+9-13
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@
7
7
_/ _/ _/_/_/ _/ _/_/_/_/ _/_/_/ _/ _/
8
8
9
9
10
-
## What is this?
10
+
## What is it?
11
11
12
12
- This package contains several helper's components which we are using on every project usually. And also it contains several css files which attached globally to storybook and drupal by default.
13
-
13
+
- This package can not be used as standalone. It's only working as a part of [kaizen-tg](https://www.npmjs.com/package/@skilld/kaizen-tg) package.
14
14
### Entity fake link helper
15
15
16
16
This component helps you to easily simulate link to some wrapper, based on link inside of this wrapper. For example sometimes you need a whole teaser clickable based on its title's link-field. This script requires two data attributes added to the wrapper and to the link itself.
@@ -26,23 +26,19 @@ Note that you can even skip this attribute `data-h-entity-fake-link-target` for
26
26
27
27
In storybook you have to call this script for your story like this:
28
28
```
29
-
import entityFakeLink from '@skilld/kaizen-core/helpers/entity-fake-link/h-entity-fake-link';
Styles for this helper called globally for storybook, so you don't need to import them manually (but actually the styles of this component contains only `cursor: pointer;` for the wrapper)
40
34
41
-
In Drupal this helper is not added by default, so if you need it - you have to manually import this component in `src/` folder and call its js/css globally or using drupal's libraries.
35
+
If you need to use this helper in drupal - just uncomment drupal's library `h-entity-fake-link` in themename.libraries.yml and it will automatically work.
36
+
37
+
If you need to specify your custom configuration for drupal's usage, please see how it can be done from `themename/src/js/components/h-entity-fake-link.js`.
42
38
43
39
### Focus visible helper
44
40
45
-
This script improves focus experience for the people who don't need a visual accessibility. For example a native browser's behavior when you clicking on the button - is to add a focus rings automatically around button, but what if user doesn't have a problems with health? Browser's native focus rings creates sometimes a lot of unnecessary noise and worsens perception of the site actually. So this helper component helps to show focus ring only to the people who really needs it (for example with that helper focus ring can be shown by pressing TAB key, but it will be hidden if interactive element was focused by using mouse's buttons)
41
+
This script improves focus experience for the people who don't need a visual accessibility. For example a native browser's behavior when you clicking on the button - is to add a focus rings automatically around button, but what if user doesn't have disabilities? Browser's native focus rings creates sometimes a lot of unnecessary noise and worsens perception of the site actually. So this helper component helps to show focus ring only to the people who really needs it (for example with that helper focus ring can be shown by pressing TAB key, but it will be hidden if interactive element was focused by using mouse's buttons)
46
42
47
43
This helper component is included globally already in storybook, when you installing [@skilld/kaizen-tg](https://www.npmjs.com/package/@skilld/kaizen-tg) theme. And also this script is included globally in `src/` folder (so Drupal have this script loaded by default too). You don't need to do anything manually with it.
0 commit comments