Skip to content

Commit

Permalink
fix: added a better sizing on icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Aug 28, 2024
1 parent 6992f5e commit 8746369
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SlideRenderer: React.FC = () => {
showPressEnter={showPressEnter}
children={
<>
{currentSlide?.buttonText}<IconResolver type={currentSlide?.icon ?? state.defaultSlideButtonIcon} style={{ height: '100%', marginLeft: quickformtokens.gap1 }} color={quickformtokens.onPrimary} size={20} />
{currentSlide?.buttonText}<IconResolver type={currentSlide?.icon ?? state.defaultSlideButtonIcon} style={{ display:"flex", height: quickformtokens.slideButtonIconSize, width: quickformtokens.slideButtonIconSize, marginLeft: quickformtokens.gap1 }} color={quickformtokens.onPrimary} size={"100%"} />
</>
}
/>
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/style/defaultQuickFormTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ export const defaultQuickFormTokens: QuickFormTokens = {
lowEmphasisOpacity: 0.38,
mediumEmphasisOpacity: 0.60,
highEmphasisOpacity: 0.87,

slideButtonIconSize: '1.5rem',
};
2 changes: 2 additions & 0 deletions packages/core/src/style/quickFormTokensDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ type QuickFormTokensBase = {
questionPadding: string;
questionInputGap: Gap,
questionPaddingBottom: string;

slideButtonIconSize: string;
};

export type QuickFormTokens = QuickFormTokensBase & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function DropdownSelectOption({
>
{children}
{isSelected && (
<Checkmark style={{display:"flex"}} color={quickformtokens.onSurface} size={24} />)}
<Checkmark style={{display:"flex"}} color={quickformtokens.onSurface} size={"2rem"} />)}
</span>
);
}

0 comments on commit 8746369

Please sign in to comment.