Skip to content

Commit

Permalink
updated variable name of strike through color and changed order of fa…
Browse files Browse the repository at this point in the history
…llback variables
  • Loading branch information
shanteaustin committed Sep 18, 2024
1 parent 091f67a commit c81fc7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ export default class InlineContent extends Base {
const strikethroughLine = {
rect: true,
w: textWidth,
color: textOverrideStyles?.textColor || this.style.textDefaultColor,
color:
this.style.strikethroughColor ||
textOverrideStyles?.textColor ||
this.style.textStyle.textColor,
h: textComponent.h * this.style.strikethroughRatio,
y: textComponent.h / 2,
mountY: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const base = theme => ({
contentSpacing: theme.spacer.md,
marginBottom: 0,
strikethroughRatio: 0.08,
textDefaultColor: theme.color.textNeutral,
strikethroughColor: theme.color.textNeutral,
textStyle: {
...theme.typography.body1
},
Expand Down

0 comments on commit c81fc7c

Please sign in to comment.