From bd6b52fc6287b947983eef6bb928eb1e2c16e5c2 Mon Sep 17 00:00:00 2001 From: Martin Bohal Date: Mon, 2 Oct 2023 09:30:54 +0200 Subject: [PATCH] fixup! Define strategy how to transfer HTML attributes to the component and accordingly modify the `TabsItem` component --- CONTRIBUTING.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 34530881..9f29881d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.