javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Add Specificity, Responsiveness, and Common Pitfalls Sections to CSS-in-JavaScript Style Guide

Open GifftyCode opened this issue 1 year ago • 6 comments

I propose adding the following sections to the Airbnb CSS-in-JavaScript Style Guide:

  1. Specificity:

    • Handling CSS specificity.
    • Avoiding the use of !important.
  2. Responsiveness:

    • Best practices for media queries.
    • Techniques for building responsive components.
  3. Common Pitfalls:

    • Common mistakes and how to avoid them.
    • Debugging tips for CSS-in-JavaScript issues.

These additions will provide valuable guidelines to help developers write more effective and maintainable styles.

Request:

I would like to contribute to the guide by drafting these sections. Please let me know if this aligns with the project’s goals and if I can proceed.

Thank you!

GifftyCode avatar Jun 24 '24 20:06 GifftyCode

Could you assign this issue to me ??

shivansh84ya avatar Jul 11 '24 19:07 shivansh84ya

Could you assign this issue to me ??

@shivansh84ya are you working on this issue?

speedywarp avatar Aug 03 '24 07:08 speedywarp

Issues don’t get assigned in open source - if there’s a linked PR, great, if not, feel free to file one.

ljharb avatar Aug 04 '24 05:08 ljharb

/attempt #3001

harsh0728 avatar Sep 18 '24 08:09 harsh0728

Kamino cloned this issue to Robbie-BOIII/test

Robbie-BOIII avatar Oct 11 '24 02:10 Robbie-BOIII

Hi @Robbie-BOIII I have added above sections to CSS-in-JavaScript Style Guide: readme file, please have a look at this pr https://github.com/airbnb/javascript/pull/3052

Sandhya-Madhuri avatar Oct 12 '24 15:10 Sandhya-Madhuri