Skip to content

CSS Refactor - Fix Inconsistent Class and Variable Naming #1

@anna-dahlberg

Description

@anna-dahlberg

Description

The CSS files currently use inconsistent naming conventions. Some classes use camelCase (like theCard, theCardFront) while others use kebab-case (like advice-section, advice-button). We should standardize to use kebab-case throughout for better CSS practices.

Acceptance Criteria

  • Convert all camelCase class names to kebab-case
  • Update corresponding HTML class references
  • Ensure all functionality remains intact
  • Maintain consistent naming pattern across all CSS files

Technical Details

CSS best practice is to use kebab-case for class names. Examples:

  • theCardthe-card
  • theCardFrontthe-card-front
  • theCardBackthe-card-back
  • mainContainermain-container

Files to Modify

  • styles.css - Update class names and selectors
  • luckyNumberStyles.css - Update class names and selectors
  • index.html - Update class attributes
  • luckyNumber.html - Update class attributes

Resources/References

Estimated Difficulty: Beginner Friendly

Additional Notes

This is a great first issue because it involves finding and replacing text across multiple files while learning CSS best practices. Test thoroughly to ensure the card flip animation still works!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions