Move mentions classname to scss module, rearrange classes #4908
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is part of a series of PRs being spun off from my WIP branch to get the Highlight web app ready for Reflame. Hopefully this makes things a bit easier to review, test, and merge. 🙂
We had both a
CommentTextBody.module.css
and aCommontTextBody.module.scss
previously. The scss module seems to be for regular component styling, while the css module seemed to be mostly meant to contain classes for the@highlight-run/react-mentions
classNames prop integration.I ended up renaming
CommentTextBody.module.css
tomentions.module.scss
to better reflect its purpose and distinguish it from the main styling module, and so there wouldn't be any name conflicts when generating corresponding .js modules for the Reflame integration. There also seemed to be 2 classes in the css module that didn't have anything to do with mentions, so I moved those out as well.How did you test this change?
Tested this out in the Reflame preview:
Are there any deployment considerations?
We do probably want to verify in Render as well to make sure Vite has the same exports output for CSS and SCSS modules.