Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(base/ui): fixed native button active style (#12353)

Calinteodorabdc5123eb3e
diff --git a/react/features/base/ui/components/native/Button.tsx b/react/features/base/ui/components/native/Button.tsx
index 24aa4fc758..51b47a11cc 100644
--- a/react/features/base/ui/components/native/Button.tsx
+++ b/react/features/base/ui/components/native/Button.tsx
@@ -15,6 +15,7 @@ import styles from './buttonStyles';
export interface IButtonProps extends ButtonProps {
color?: string;
+ contentStyle?: Object | undefined;
labelStyle?: Object | undefined;
style?: Object | undefined;
}
@@ -22,6 +23,7 @@ export interface IButtonProps extends ButtonProps {
const Button: React.FC<IButtonProps> = ({
accessibilityLabel,
color: buttonColor,
+ contentStyle,
disabled,
icon,
labelKey,
@@ -88,6 +90,10 @@ const Button: React.FC<IButtonProps> = ({
accessibilityLabel = { t(accessibilityLabel ?? '') }
children = { t(labelKey ?? '') }
color = { color }
+ contentStyle = { [
+ styles.buttonContent,
+ contentStyle
+ ] }
disabled = { disabled }
// @ts-ignore
icon = { icon }
diff --git a/react/features/base/ui/components/native/buttonStyles.ts b/react/features/base/ui/components/native/buttonStyles.ts
index c06146c276..a1c789c779 100644
--- a/react/features/base/ui/components/native/buttonStyles.ts
+++ b/react/features/base/ui/components/native/buttonStyles.ts
@@ -23,6 +23,10 @@ export default {
...buttonLabel
},
+ buttonContent: {
+ height: BUTTON_HEIGHT
+ },
+
buttonLabelDisabled: {
...buttonLabel,
color: BaseTheme.palette.text03