Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio06 committed Nov 7, 2024
1 parent 4fca9ce commit 7cc1e1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ export const POSTIT_SHAPE: DefaultStyleShape = {
DEFAULT_FONT_STYLE,
DEFAULT_TEXT_DECORATION,
};

export const LINK_SHAPE: DefaultStyleShape = {
...BASIC_SHAPE,
DEFAULT_FILL_TEXT: '#0000FF',
};
3 changes: 2 additions & 1 deletion src/pods/canvas/model/shape-other-props.utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
INPUT_SHAPE,
BASIC_SHAPE,
LINK_SHAPE,
} from '@/common/components/mock-components/front-components/shape.const';
import { ShapeType, OtherProps } from '@/core/model';

Expand Down Expand Up @@ -141,7 +142,7 @@ export const generateDefaultOtherProps = (
};
case 'link':
return {
textColor: 'blue',
textColor: `${LINK_SHAPE.DEFAULT_FILL_TEXT}`,
textDecoration: 'underline',
};
case 'normaltext':
Expand Down

0 comments on commit 7cc1e1f

Please sign in to comment.