@momo-kits/foundation 0.113.0-optimize.3-beta.11 → 0.113.0-optimize.3-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Layout/Card.tsx +4 -1
- package/Layout/Section.tsx +4 -1
- package/package.json +1 -1
package/Layout/Card.tsx
CHANGED
|
@@ -27,6 +27,7 @@ const Card: React.FC<CardProps> = ({
|
|
|
27
27
|
style,
|
|
28
28
|
backgroundImage,
|
|
29
29
|
useShadow = false,
|
|
30
|
+
accessibilityLabel,
|
|
30
31
|
...props
|
|
31
32
|
}) => {
|
|
32
33
|
const {showGrid, theme} = useContext(ApplicationContext);
|
|
@@ -156,7 +157,9 @@ const Card: React.FC<CardProps> = ({
|
|
|
156
157
|
},
|
|
157
158
|
!!backgroundImage && {backgroundColor: undefined},
|
|
158
159
|
useShadow && Shadow.Light,
|
|
159
|
-
]}
|
|
160
|
+
]}
|
|
161
|
+
accessibilityLabel={accessibilityLabel}
|
|
162
|
+
>
|
|
160
163
|
{!!backgroundImage && (
|
|
161
164
|
<Image
|
|
162
165
|
source={{uri: backgroundImage}}
|
package/Layout/Section.tsx
CHANGED
|
@@ -33,6 +33,7 @@ const Section: React.FC<SectionProps> = ({
|
|
|
33
33
|
useMargin = true,
|
|
34
34
|
backgroundImage,
|
|
35
35
|
style,
|
|
36
|
+
accessibilityLabel,
|
|
36
37
|
...props
|
|
37
38
|
}) => {
|
|
38
39
|
const {showGrid} = useContext(ApplicationContext);
|
|
@@ -161,7 +162,9 @@ const Section: React.FC<SectionProps> = ({
|
|
|
161
162
|
flexDirection: 'row',
|
|
162
163
|
flexWrap: 'wrap',
|
|
163
164
|
},
|
|
164
|
-
]}
|
|
165
|
+
]}
|
|
166
|
+
accessibilityLabel={accessibilityLabel}
|
|
167
|
+
>
|
|
165
168
|
{!!backgroundImage && (
|
|
166
169
|
<Image
|
|
167
170
|
source={{uri: backgroundImage}}
|