Skip to content

Good pattern ideas for reuseable CSS properties #545

Answered by nmn
BMCwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

Was there a particular reason not to include all of the options for alignContent?

Yeah please create bugs to report any missing types.

I know that you can use null to remove styles. And null is in the all type. But not sure how I am to use it in this setup:

The null is to be used within the styles

const alignStyles = stylex.create({
  remove: {
    alignContent: null
  },
});

In your case if there is no style being applied anyway, you don't need null to remove anything.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@BMCwebdev
Comment options

Comment options

You must be logged in to vote
1 reply
@nmn
Comment options

Answer selected by BMCwebdev
Comment options

You must be logged in to vote
4 replies
@BMCwebdev
Comment options

@necolas
Comment options

@BMCwebdev
Comment options

@nmn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants