Skip to content

Commit e37b030

Browse files
committed
fix: corrects a color issue on "Tryk Enter" text next to slideButton - removes some redundant code
1 parent e0fed13 commit e37b030

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/core/src/components/button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const Button: React.FC<PropsWithChildren<BtnContainerProps>> = ({ childre
7272

7373
</button>
7474
{!disabled && !isOnMobile && showPressEnter && (
75-
<span style={{ color: quickformtokens.onPrimary, fontSize: quickformtokens.btnEnterKeyTextFontSize }}>
75+
<span style={{ color: quickformtokens.onSurface, fontSize: quickformtokens.btnEnterKeyTextFontSize }}>
7676
<>Tryk <strong style={{ fontWeight: 'bolder', letterSpacing: '0.04em', }}>Enter ↵</strong></>
7777
</span>
7878
)}

packages/core/src/services/defaults/DefaultInputTypeResolver.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ const parseInputProperties = (questionJsonModel: QuestionJsonModel): InputProper
1818
.filter(([key]) => !['text', 'paragraph', 'placeholder'].includes(key))
1919
.map(([key, schema]) => [key, questionJsonModel[key as keyof QuestionJsonModel] ?? getDefaultValue(schema)])) as InputPropertiesTypes;
2020
}
21-
//This will always return {} , do we know what we are doing here? KBA?
22-
const inputTypePropertiesMap: { [key: string]: () => InputPropertiesTypes } = {};
2321

24-
return inputType in inputTypePropertiesMap ? inputTypePropertiesMap[inputType]() : {};
22+
return {};
2523
};
2624

2725
registerQuickFormService("inputTypePropertiesTransformer", parseInputProperties);

0 commit comments

Comments
 (0)