Skip to content

Commit f0ffe53

Browse files
committed
Tener disponible el combo box con las diferentes font size y pasarle al componente HorizontalMenuShape el valor de la propiedad.
1 parent 6d5db61 commit f0ffe53

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/common/components/mock-components/front-rich-components/horizontal-menu/horizontal-menu.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ export const HorizontalMenu = forwardRef<any, ShapeProps>((props, ref) => {
5454
const totalMargins = restrictedWidth - itemSpacing * (numberOfItems + 1);
5555
const itemWidth = totalMargins / numberOfItems;
5656

57-
const { stroke, strokeStyle, fill, textColor, borderRadius } = useShapeProps(
58-
otherProps,
59-
BASIC_SHAPE
60-
);
57+
const { stroke, strokeStyle, fill, textColor, borderRadius, fontSize } =
58+
useShapeProps(otherProps, BASIC_SHAPE);
6159

6260
const itemVerticalPadding = 4;
6361

@@ -98,7 +96,7 @@ export const HorizontalMenu = forwardRef<any, ShapeProps>((props, ref) => {
9896
y={restrictedHeight / 2 - 8}
9997
text={header}
10098
fontFamily="Arial"
101-
fontSize={16}
99+
fontSize={fontSize}
102100
fill={textColor}
103101
width={itemWidth}
104102
align="center"

src/pods/canvas/model/shape-other-props.utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const generateDefaultOtherProps = (
4848
strokeStyle: [],
4949
borderRadius: `${BASIC_SHAPE.DEFAULT_CORNER_RADIUS}`,
5050
activeElement: 0,
51+
fontSize: FONT_SIZE_VALUES.NORMALTEXT,
5152
};
5253
case 'datepickerinput':
5354
case 'timepickerinput':

0 commit comments

Comments
 (0)