Skip to content

Commit

Permalink
fixup! Define strategy how to transfer HTML attributes to the compone…
Browse files Browse the repository at this point in the history
…nt and accordingly modify the `TabsItem` component
  • Loading branch information
mbohal committed Oct 2, 2023
1 parent 5e5441e commit bd6b52f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ To keep React UI consistent and predictable the following guidelines should be o
should return `null` when no children are provided.
2. When forwarding HTML attributes to the component the following rules should
be observed:
1. If the component internally instantiates an interactive
(clickable/editable) element, the attributes should be forwarded to it.
2. If the component internally instantiates multiple interactive
1. If the component internally instantiates one or more interactive
(clickable/editable) elements, the attributes should be forwarded to
them.
3. If the component does not internally instantiate an interactive
all of them.
2. If the component does not internally instantiate an interactive
(clickable/editable) element, the attributes should be forwarded to the
root element of the component.
Expand Down

0 comments on commit bd6b52f

Please sign in to comment.