From 2978ade387c55b7d4305a70e15fcb6b28d49fc78 Mon Sep 17 00:00:00 2001 From: ncdiehl11 Date: Thu, 9 May 2024 10:16:36 -0400 Subject: [PATCH] fix(app): fix background color on magnetic module slideout data According to designs, the background for magnetic module slideout height range table should be grey20, not grey10. --- app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx | 3 ++- .../ModuleCard/__tests__/MagneticModuleSlideout.test.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx index 347b7871a7c..347710982f5 100644 --- a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx @@ -164,13 +164,14 @@ export const MagneticModuleSlideout = ( {t('height_ranges', { gen: info.version })} { }) expect(button).not.toBeEnabled() }) + + it('renders the correct background color in magnetic module data', () => { + render(props) + const magneticModuleInfo = screen.getByTestId( + 'MagneticModuleSlideout_body_data_def456' + ) + expect(magneticModuleInfo).toHaveStyle(`background-color: ${COLORS.grey20}`) + }) })