carbon-design-system / ibm-security

A Carbon-powered React component library built by IBM Security
https://ibm-security.carbondesignsystem.com
Apache License 2.0
76 stars 54 forks source link

Modularise component styles #44

Closed j1mie closed 4 years ago

j1mie commented 5 years ago

Context

Components (tag yourself on component PRs you're working on)

Other

j1mie commented 5 years ago

@SimonFinney thanks for sharing the link for Sass Modules via slack. I'm wondering if this is something we can look at in relation to this work? @jendowns

SimonFinney commented 5 years ago

@j1mie I'd love that! Currently, this feature is only available in dart-sass so it would require us to migrate over and I believe anyone else planning on consuming it would have to do the same šŸ˜­

j1mie commented 5 years ago

Hrmmmm, okay scratch that so!

SimonFinney commented 4 years ago

Update

SimonFinney commented 4 years ago

This will reduce compilation time down from 63 seconds to 16. Recommended guidance for offering teams -

// vendor.scss

@import '@carbon/ibm-security/scss/index';
// application.scss

// Application styles.
// index.scss

@import 'vendor';
@import 'application';
SimonFinney commented 4 years ago

:tada: This issue has been resolved in version 1.18.1-prerelease.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

SimonFinney commented 4 years ago

:tada: This issue has been resolved in version 1.19.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: