Skip to content

Commit

Permalink
fix: prefix generated background position and size classes with
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Jun 21, 2020
1 parent 9f33038 commit f9dcd04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generation/ClassesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class ClassesGenerator implements IGenerator {
...defaultBackgrounds,
backgroundOpacity: this.getGeneratedClassesWithOpacities().backgroundOpacities,
backgroundColor: this.getGeneratedClassesWithColors('bg'),
backgroundPosition: Object.keys(this.configScanner.themeConfig.backgroundPosition),
backgroundSize: Object.keys(this.configScanner.themeConfig.backgroundSize),
backgroundPosition: Object.keys(this.configScanner.themeConfig.backgroundPosition).map(x => 'bg-' + x),
backgroundSize: Object.keys(this.configScanner.themeConfig.backgroundSize).map(x => 'bg-' + x),
};

this.allGeneratedClasses.Backgrounds = Backgrounds;
Expand Down

0 comments on commit f9dcd04

Please sign in to comment.