Skip to content

Commit

Permalink
fix: add condition when generating borderColor
Browse files Browse the repository at this point in the history
  • Loading branch information
boompikachu authored and muhammadsammy committed Oct 7, 2021
1 parent 9557847 commit 3192ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export class ClassnamesGenerator {
return Object.keys(colorValue).flatMap(shade => {
if (utilName === 'border' && this.isJitModeEnabled()) {
return ['', 't', 'r', 'b', 'l'].map(
side => `${utilName}-${side}-${colorName}-${shade}`,
side => `${utilName}-${side.length > 0 ? side + '-' : ''}${colorName}-${shade}`,
);
} else {
return `${utilName}-${colorName}-${shade}`;
Expand Down

0 comments on commit 3192ea8

Please sign in to comment.