Skip to content

Commit

Permalink
refactor(axis): rename css class
Browse files Browse the repository at this point in the history
  • Loading branch information
max-jonas committed Sep 30, 2024
1 parent 134daa8 commit 99e7ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/scss/components/_axis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
fill: theme.$text-secondary;
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);

&.primary-tick-label {
&.tick-label--primary {
font-weight: bold;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/axes/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export class Axis extends Component {
.select('text')
ticks.attr('class', (tick: number, i: number) =>
isTickPrimary(tick, i, axis.tickValues(), timeInterval, showDayName)
? 'primary-tick-label'
? 'tick-label--primary'
: 'tick-label'
)
} else {
Expand Down

0 comments on commit 99e7ea0

Please sign in to comment.