Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import type {SelectionListHandle} from '@components/SelectionList/types';
import HelpButton from '@components/SidePane/HelpComponents/HelpButton';
import useLocalize from '@hooks/useLocalize';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import {navigateToAndOpenReport} from '@libs/actions/Report';
import {clearAllFilters} from '@libs/actions/Search';
Expand Down Expand Up @@ -55,6 +56,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
const {translate} = useLocalize();
const [showPopupButton, setShowPopupButton] = useState(true);
const styles = useThemeStyles();
const theme = useTheme();
const {shouldUseNarrowLayout: displayNarrowHeader} = useResponsiveLayout();
const personalDetails = usePersonalDetails();
const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
Expand Down Expand Up @@ -303,7 +305,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
styles.pAbsolute,
styles.pt2,
{top: 8 - BORDER_WIDTH, left: leftPopoverHorizontalPosition, right: rightPopoverHorizontalPosition},
{boxShadow: variables.popoverMenuShadow},
{boxShadow: theme.shadow},
]
: [styles.pt4];
const inputWrapperActiveStyle = isAutocompleteListVisible ? styles.ph2 : null;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const styles = (theme: ThemeColors) =>
borderColor: theme.border,
justifyContent: 'center',
overflow: 'hidden',
boxShadow: variables.popoverMenuShadow,
boxShadow: theme.shadow,
paddingVertical: CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTER_INNER_PADDING,
},

Expand Down
2 changes: 1 addition & 1 deletion src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const darkTheme = {
// Additional keys
overlay: colors.productDark400,
inverse: colors.productDark900,
shadow: colors.black,
shadow: '0px 4px 12px 0px rgba(2,18,4,0.24)',
componentBG: colors.productDark100,
hoverComponentBG: colors.productDark300,
messageHighlightBG: colors.messageHighlightDark,
Expand Down
2 changes: 1 addition & 1 deletion src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const lightTheme = {
// Additional keys
overlay: colors.productLight400,
inverse: colors.productLight900,
shadow: colors.black,
shadow: '0px 4px 12px 0px rgba(2,18,4,0.06)',
componentBG: colors.productLight100,
messageHighlightBG: colors.yellow100,
hoverComponentBG: colors.productLight300,
Expand Down
13 changes: 7 additions & 6 deletions src/styles/utils/generators/ModalStyleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
},
};
modalContainerStyle = {
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.1)',
boxShadow: theme.shadow,
borderRadius: variables.componentBorderRadiusLarge,
overflow: 'hidden',
width: variables.sideBarWidth,
Expand All @@ -98,7 +98,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
},
};
modalContainerStyle = {
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.1)',
boxShadow: theme.shadow,
flex: 1,
marginTop: isSmallScreenWidth ? 0 : 20,
marginBottom: isSmallScreenWidth ? 0 : 20,
Expand Down Expand Up @@ -128,7 +128,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
},
};
modalContainerStyle = {
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.1)',
boxShadow: theme.shadow,
flex: 1,
marginTop: isSmallScreenWidth ? 0 : 20,
marginBottom: isSmallScreenWidth ? 0 : 20,
Expand All @@ -155,7 +155,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
},
};
modalContainerStyle = {
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.1)',
boxShadow: theme.shadow,
flex: 1,
marginTop: isSmallScreenWidth ? 0 : 20,
marginBottom: isSmallScreenWidth ? 0 : 20,
Expand All @@ -180,7 +180,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
},
};
modalContainerStyle = {
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.1)',
boxShadow: theme.shadow,
borderRadius: variables.componentBorderRadiusLarge,
borderWidth: 0,
};
Expand Down Expand Up @@ -209,6 +209,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
paddingTop: variables.componentBorderRadiusLarge,
justifyContent: 'center',
overflow: 'hidden',
boxShadow: theme.shadow,
};

shouldAddBottomSafeAreaPadding = true;
Expand All @@ -232,7 +233,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
borderColor: theme.border,
justifyContent: 'center',
overflow: 'hidden',
boxShadow: variables.popoverMenuShadow,
boxShadow: theme.shadow,
};

hideBackdrop = true;
Expand Down
1 change: 0 additions & 1 deletion src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export default {
pdfPageMaxWidth: 992,
tooltipzIndex: 10050,
gutterWidth: 12,
popoverMenuShadow: '0px 4px 12px 0px rgba(0, 0, 0, 0.06)',
optionRowHeight: 64,
optionRowHeightCompact: 52,
optionsListSectionHeaderHeight: getValueUsingPixelRatio(32, 38),
Expand Down