File tree Expand file tree Collapse file tree
src/patternfly/components/SimpleList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,29 @@ cssPrefix: pf-c-simple-list
2727 {{/simple-list-list}}
2828{{/simple-list}}
2929```
30+
31+ ``` hbs title=Simple-list-with-links
32+ {{#> simple-list simple-list-item-link--IsLink="true"}}
33+ {{#> simple-list-list}}
34+ {{#> simple-list-item}}
35+ {{#> simple-list-item-link simple-list-item-link--modifier="pf-m-current"}}
36+ List item 1
37+ {{/simple-list-item-link}}
38+ {{/simple-list-item}}
39+ {{#> simple-list-item}}
40+ {{#> simple-list-item-link}}
41+ List item 2
42+ {{/simple-list-item-link}}
43+ {{/simple-list-item}}
44+ {{#> simple-list-item}}
45+ {{#> simple-list-item-link}}
46+ List item 3
47+ {{/simple-list-item-link}}
48+ {{/simple-list-item}}
49+ {{/simple-list-list}}
50+ {{/simple-list}}
51+ ```
52+
3053``` hbs title=Grouped-list
3154{{#> simple-list}}
3255 {{#> simple-list-section}}
@@ -87,7 +110,11 @@ cssPrefix: pf-c-simple-list
87110```
88111
89112## Documentation
90- ### Overview
113+
114+ ### Accessibility
115+ | Attribute | Applied to | Outcome |
116+ | -- | -- | -- |
117+ | ` tabindex="0" ` | ` a.pf-c-simple-list__item-link ` | Inserts the link into the tab order of the page so that it is focusable. ** Required** |
91118
92119### Usage
93120| Class | Applied to | Outcome |
Original file line number Diff line number Diff line change 1- <{{ #if simple-list-item-link--type}}{{ simple-list-item-link--type }} {{ else }} button{{ /if }} class =" pf-c-simple-list__item-link{{ #if simple-list-item-link--modifier }} {{ simple-list-item-link--modifier }} {{ /if }} "
1+ <{{ #if simple-list-item-link--IsLink}}a{{ else }} button{{ /if }} class =" pf-c-simple-list__item-link{{ #if simple-list-item-link--modifier }} {{ simple-list-item-link--modifier }} {{ /if }} "
2+ {{ #if simple-list-item-link--IsLink }}
3+ href =" #"
4+ tabindex =" 0"
5+ {{ else }}
6+ type =" button"
7+ {{ /if }}
28 {{ #if simple-list-item-link--attribute }}
39 {{{ simple-list-item-link--attribute }}}
410 {{ /if }} >
511 {{> @partial-block }}
6- </{{ #if simple-list-item-link--type}} {{ simple-list-item-link--type }} {{ else }} button{{ /if }} >
12+ </{{ #if simple-list-item-link--IsLink}}a {{ else }} button{{ /if }} >
Original file line number Diff line number Diff line change 5252
5353 & .pf-m-hover ,
5454 & :hover {
55+ text-decoration : none ;
56+
5557 --pf-c-simple-list__item-link--BackgroundColor : var (--pf-c-simple-list__item-link--hover--BackgroundColor );
5658 --pf-c-simple-list__item-link--Color : var (--pf-c-simple-list__item-link--hover--Color );
5759 }
You can’t perform that action at this time.
0 commit comments