Closed maqeelqureshi closed 1 year ago
This is a bug found in <Header />
. Because of the zIndex from the title, it makes the button hard to press. If you stick to the outer part of the button you can sometimes get it depending on the specifics of your button. You can visibly see the issue with the element inspector:
Green is padding from the label, blue is where text would show. It overpowers the button label in this case. If you press at the top or bottom edge the onPress
fires correctly.
@maqeelqureshi in <DrawerIconButton />
add a zIndex: 2
to the $container
style and let me know if that fixes things for you, seems to be solving the issue on my end.
@yulolimum Should we just better document the ActionComponent
prop? Or just throw it in a view wrapper with a zIndex set? The reason it works for content
or icon
is because it is set on those styles (but we wouldn't know the specifics of a passed in ActionComponent
to override the style.
if (ActionComponent) return ActionComponent
const $actionTextContainer: ViewStyle = {
flexGrow: 0,
alignItems: "center",
justifyContent: "center",
height: "100%",
paddingHorizontal: spacing.medium,
zIndex: 2,
}
const $actionIconContainer: ViewStyle = {
flexGrow: 0,
alignItems: "center",
justifyContent: "center",
height: "100%",
paddingHorizontal: spacing.medium,
zIndex: 2,
}
@frankcalise adding zIndex: 2
to the $container style fixed it. Thanks
:tada: This issue has been resolved in version 8.4.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Same issue in ignite 9 (IOS only).
Describe the bug
I am trying to add animated drawer button in header component. Component is rendering properly but it's events are not working. If i use header left/right icons then onPress events works fine,
Ignite version
8.1.0
Additional info