Skip to content

Is importing specific component styles still supported? #13968

Answered by tay1orjones
SimonFinney asked this question in Help
Discussion options

You must be logged in to vote

@tw15egan, @janhassel put up additional PR up here: #13984

@SimonFinney, yes importing specific component styles is supported. I've updated it to no longer stay "preferred" though. The e2e test file you referenced there is actually unused and should've been removed a while ago but was missed. The e2e setup used right now runs against the storybook. To test component styles in isolation we'd need to reconsider this approach. The implications of this would include:

  • Setting up a new environment (in addition to the existing storybook one) for e2e testing component styles in isolation from one another
  • Slower tests due to having to compile styles with sass for each test/component
  • VRT snapshots…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@SimonFinney
Comment options

@janhassel
Comment options

@tw15egan
Comment options

Comment options

You must be logged in to vote
2 replies
@SimonFinney
Comment options

@tay1orjones
Comment options

Answer selected by SimonFinney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants