From 630c3f6fabc10d1f5b3ab2c496cbd12a0b687633 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:47:21 +0100 Subject: [PATCH] rename back accessibility role prop --- src/components/FloatingActionButton/index.js | 6 +++--- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/FloatingActionButton/index.js b/src/components/FloatingActionButton/index.js index 6f40212200d4..cc4dc7a0a135 100644 --- a/src/components/FloatingActionButton/index.js +++ b/src/components/FloatingActionButton/index.js @@ -25,13 +25,13 @@ const propTypes = { accessibilityLabel: PropTypes.string.isRequired, /* An accessibility role for the button */ - accessibilityRole: PropTypes.string.isRequired, + role: PropTypes.string.isRequired, ...withThemeStylesPropTypes, ...withThemePropTypes, }; -const FloatingActionButton = React.forwardRef(({onPress, isActive, accessibilityLabel, accessibilityRole, theme, themeStyles}, ref) => { +const FloatingActionButton = React.forwardRef(({onPress, isActive, accessibilityLabel, role, theme, themeStyles}, ref) => { const {translate} = useLocalize(); const fabPressable = useRef(null); const animatedValue = useSharedValue(isActive ? 1 : 0); @@ -65,7 +65,7 @@ const FloatingActionButton = React.forwardRef(({onPress, isActive, accessibility } }} accessibilityLabel={accessibilityLabel} - accessibilityRole={accessibilityRole} + role={role} pressDimmingValue={1} onPress={(e) => { // Drop focus to avoid blue focus ring. diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index 8cd9cabe5faf..a1ba7042f158 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -232,7 +232,7 @@ function FloatingActionButtonAndPopover(props) { /> {