Skip to content

Commit

Permalink
refactor(input): change font weight variable source to self
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Oct 7, 2024
1 parent 972638b commit 9a23d7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/input/src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ export default defineComponent({
const cssVarsRef = computed(() => {
const { value: size } = mergedSizeRef
const {
common: { cubicBezierEaseInOut, fontWeight },
common: { cubicBezierEaseInOut },
self: {
color,
borderRadius,
Expand Down Expand Up @@ -949,6 +949,7 @@ export default defineComponent({
loadingColor,
loadingColorError,
loadingColorWarning,
fontWeight,
[createKey('padding', size)]: padding,
[createKey('fontSize', size)]: fontSize,
[createKey('height', size)]: height
Expand Down
4 changes: 3 additions & 1 deletion src/input/styles/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ const inputDark: InputTheme = {
iconColor,
iconColorDisabled,
iconColorHover,
iconColorPressed
iconColorPressed,
fontWeight
} = vars
return {
...commonVariables,
fontWeight,
countTextColorDisabled: textColorDisabled,
countTextColor: textColor3,
heightTiny,
Expand Down
4 changes: 3 additions & 1 deletion src/input/styles/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ function self(vars: ThemeCommonVars) {
iconColor,
iconColorDisabled,
iconColorHover,
iconColorPressed
iconColorPressed,
fontWeight
} = vars
return {
...commonVariables,
fontWeight,
countTextColorDisabled: textColorDisabled,
countTextColor: textColor3,
heightTiny,
Expand Down

0 comments on commit 9a23d7e

Please sign in to comment.