Provide a general summary of the issue here
For responsive design I would like to remove <Text> when in mobile view but show it when in larger screens.
🤔 Expected Behavior?
Correct alignment.

😯 Current Behavior
left padding is bigger than the right instead of center aligned.

💁 Possible Solution
isHidden should be respected for now I'm using the following workaround.
export const useInBaseReponsiveMode = () => {
const { matchedBreakpoints } = useBreakpoint();
const isBase = useMemo(() => {
return getResponsiveProp(
{
base: true,
M: false,
},
matchedBreakpoints
);
}, [matchedBreakpoints]);
return isBase;
};
return (
<ActionButton>
<Add />
{!isBase && <Text>New</Text>}
</ActionButton>
);
Seems like a hack.
🔦 Context
No response
🖥️ Steps to Reproduce
Set isHidden for ActionButton and resize the window.
<ActionButton>
<Add />
<Text isHidden={{ base: true, M: false }}>New</Text>
</ActionButton>
Version
3.29.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
linux
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Provide a general summary of the issue here
For responsive design I would like to remove
<Text>when in mobile view but show it when in larger screens.🤔 Expected Behavior?
Correct alignment.
😯 Current Behavior
left padding is bigger than the right instead of center aligned.
💁 Possible Solution
isHiddenshould be respected for now I'm using the following workaround.Seems like a hack.
🔦 Context
No response
🖥️ Steps to Reproduce
Set isHidden for ActionButton and resize the window.
Version
3.29.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
linux
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response