Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Sep 30, 2024
1 parent 4caede9 commit 41a9de6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gestalt/src/IconButtonFloating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { forwardRef } from 'react';
import Box from './Box';
import InternalIconButton from './IconButton/InternalIconButton';
import icons from './icons/index';
import useInExperiment from './useInExperiment';
import { Indexable } from './zIndex';

type Props = {
Expand Down Expand Up @@ -84,8 +85,13 @@ const IconButtonFloatingWithForwardRef = forwardRef<HTMLButtonElement, Props>(
}: Props,
ref,
) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
});

return (
<Box borderStyle="shadow" color="default" rounding={4}>
<Box borderStyle="shadow" color="default" rounding={isInVRExperiment ? 4 : 'circle'}>
<InternalIconButton
ref={ref}
accessibilityControls={accessibilityControls}
Expand Down

0 comments on commit 41a9de6

Please sign in to comment.