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
Copy file name to clipboardExpand all lines: docs/accessibility.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ For example:
54
54
</Button>
55
55
```
56
56
57
-
Known reactstrap components that accept the `color` prop and work with custom Treeherder colors: `Badge`, `Button`, `Card`, `DropdownToggle`, `FormText`, `NavBar`, `Progress`, `Spinner`.
57
+
Known reactstrap components that accept the `color` prop and work with custom Treeherder colors: `Badge`, `Button`, `Card`, `Dropdown.Toggle`, `FormText`, `NavBar`, `Progress`, `Spinner`.
58
58
59
59
In case you need to add more custom colors, please add on [treeherder-custom-styles.css](https://github.com/mozilla/treeherder/blob/master/ui/css/treeherder-custom-styles.css#L348) style sheet.
60
60
@@ -102,7 +102,7 @@ If your case is more specific, please check [this guide](https://css-tricks.com/
102
102
103
103
## Interactive elements
104
104
105
-
When creating elements that have event listeners, prefer any component of the reactstrap interactive elements. Examples are: `Button`, `Input`, `DropdownToggle`. You can also choose a HTML `<a>` element.
105
+
When creating elements that have event listeners, prefer any component of the reactstrap interactive elements. Examples are: `Button`, `Input`, `Dropdown.Toggle`. You can also choose a HTML `<a>` element.
106
106
107
107
If you need to insert an event listener in a non-interactive element, such as a `span`, add also an `aria-role` of `button`, `link`, `checkbox`, or whatever seems closer to the functionality of the element.
108
108
@@ -116,10 +116,10 @@ If you need to insert an event listener in a non-interactive element, such as a
116
116
117
117
There is a special case when you are creating a dropdown menu. First of all, try to follow [reactstrap structure](https://reactstrap.github.io/components/dropdowns/).
118
118
119
-
Lastly, insert an additional tag `prop` to `DropdownItem` component.
119
+
Lastly, insert an additional tag `prop` to `Dropdown.Item` component.
120
120
121
121
```jsx
122
-
<DropdownItem tag="a"> Menu Item </DropdownItem>
122
+
<Dropdown.Item tag="a"> Menu Item </Dropdown.Item>
0 commit comments