Skip to content

Commit

Permalink
chore: fix misplaced comments in ClassesGenerator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Jan 5, 2021
1 parent 4b12183 commit 549fec0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cli/core/ClassesGenerator.ts
Expand Up @@ -364,12 +364,11 @@ export class ClassesGenerator implements IGenerator {

// Generate the classname of each variant...
pseudoClassesVariantsForKey.map(variant => {
// Get the breakpoints from config

// If the variant is the responsive variant (md:, lg:)...
if (variant === 'responsive') {
// Create the classname for each breakpoint
// Get the breakpoints from config
const [breakpoints] = this._configScanner.getThemeProperty('screens');

// Create the classname for each breakpoint
breakpoints.map((breakpointVariant: string) => {
// Push the created classes to the pseudoClasses array
pseudoClasses.push(
Expand Down Expand Up @@ -439,7 +438,7 @@ export class ClassesGenerator implements IGenerator {
.filter(k => k !== 'DEFAULT')
// Then, for every key of the property...
.flatMap((colorName, i) => {
// Get the value that corresponds to that key. NOTE: the value could be a `string` or an `object` of shades.
// Get the value that corresponds to that key. NOTE: It can be `string` or an `object` of shades.
const colorValue = propertyValues[i];

// If the value is a nested object of color shades...
Expand Down

0 comments on commit 549fec0

Please sign in to comment.