Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add docs-related stable classnames #5445

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Aug 30, 2021

Motivation

Start introducing some stable theme class names so that users can more easily target some components to customize with custom CSS selectors, ensuring those selectors don't break over time.

For now, we are just introducing some initial classNames, covering needs of the React-Native website, and we don't document this feature on purpose, so breaking changes can still happen.

If successful, we'll generalize and document this, and commit to avoid any undocumented breaking change.

Going to merge this now as I need it to make RN website more resilient, but feel free to comment if you have better ideas, naming convention, or whatever.

``

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

preview

@slorber slorber added the pr: new feature This PR adds a new API or behavior. label Aug 30, 2021
@slorber slorber requested a review from lex111 as a code owner August 30, 2021 17:56
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 30, 2021
@netlify
Copy link

netlify bot commented Aug 30, 2021

✔️ [V2]

🔨 Explore the source changes: 73dfc33

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/612d1be46102f700088c0a8f

😎 Browse the preview: https://deploy-preview-5445--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 98
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5445--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: +1.84 kB (0%)

Total Size: 820 kB

Filename Size Change
website/build/assets/js/main.********.js 412 kB +571 B (0%)
website/build/docs/index.html 44.5 kB +472 B (+1%)
website/build/docs/installation/index.html 52.5 kB +472 B (+1%)
website/build/tests/docs/index.html 24.8 kB +233 B (+1%)
website/build/tests/docs/standalone/index.html 22.4 kB +62 B (0%)
ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 36.5 kB 0 B
website/build/assets/css/styles.********.css 93.7 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 66.6 kB +29 B (0%)
website/build/blog/index.html 37.5 kB 0 B
website/build/index.html 30.2 kB 0 B

compressed-size-action

@slorber slorber merged commit 3a312d9 into main Aug 31, 2021
@slorber slorber deleted the slorber/docs-theme-classnames branch August 31, 2021 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: new feature This PR adds a new API or behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants