Skip to content

Conversation

@bradlc
Copy link
Contributor

@bradlc bradlc commented May 23, 2022

This prevents the comments from appearing in a user's editor.

Before

CleanShot 2022-05-23 at 20 38 44@2x

After

CleanShot 2022-05-23 at 20 43 15@2x

This prevents the comments from appearing in editors
@bradlc bradlc requested a review from RobinMalfait May 23, 2022 19:43
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just 2 questions

Comment on lines +67 to +71
// Use the `media` query strategy.
| 'media'
/** Use the `class` stategy, which requires a `.dark` class on the `html`. */
// Use the `class` stategy, which requires a `.dark` class on the `html`.
| 'class'
/** Use the `class` stategy with a custom class instead of `.dark`. */
// Use the `class` stategy with a custom class instead of `.dark`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that for these it could still be useful to know what each type means. But maybe they don't show up at all 🤔

| 'shadow'
export interface PluginAPI {
/** for registering new static utility styles */
// for registering new static utility styles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could also be useful to the user, or do you reckon that this is a bit redundant because the name addUtilities itself is self explanatory enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we could write some documentation comments that are useful to users, but it seems like the comments in this file right now have not been written for that purpose, and it was not the intention for these to be visible to users. Consider comments like Utilities or Responsiveness for example. I propose that we hide everything for now and consider adding proper documentation comments in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep sounds good, let's merge it 💪

@bradlc bradlc merged commit 22f9dc8 into master May 25, 2022
@bradlc bradlc deleted the types-comments branch May 25, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants