Skip to content

Commit

Permalink
Merge pull request #234 from kpi-ua/KB-63-Overflowing-buttons-in-day-…
Browse files Browse the repository at this point in the history
…switcher

KB-63 optimize size of radio buttons on small screen sizes
  • Loading branch information
niravzi authored Sep 11, 2024
2 parents 2c24181 + 027df7a commit b1ea7da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/RadioGroup/RadioGroup.style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled, { css } from 'styled-components';
import { getValueFromTheme } from '../../common/utils/getValueFromTheme';
import { media } from '../../common/styles/styles';

export const RadioGroupWrapper = styled.div<{ fullWidth?: boolean, rounded?: boolean }>`
width: ${(props) => props.fullWidth ? '100%' : 'auto'};
Expand Down Expand Up @@ -49,4 +50,8 @@ export const RadioGroupOption = styled.div<{active: boolean, rounded?: boolean}>
box-shadow: 0 0 2px rgba(0, 0, 0, 0.12);
color: #141518;
` : ''};
${media.extraSmallMode} {
padding: 6px;
}
`;

0 comments on commit b1ea7da

Please sign in to comment.