Skip to content

fix: scope SecurityUpdateBtn css styles #2918

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

Merged
merged 1 commit into from
Jul 9, 2024
Merged

fix: scope SecurityUpdateBtn css styles #2918

merged 1 commit into from
Jul 9, 2024

Conversation

AloisSeckar
Copy link
Contributor

Description of Problem

Recent update 8a4f627 introduced new button component in VitePress theme. CSS styles of this component are not scoped and since .container is used several other times, the style leaked:

image

It might not be apparent for page titles. But we spotted it out, because I added specific width in Czech translation. I thought it is only for the button, but it shifted whole layout badly....

Proposed Solution

I believe there was no intention to edit .container style globally and the simplilest solution is just to add scoped attribute into SecurityUpdateBtn.vue, which I think is also the recommended way of using styles in components to avoid such situations.

Additional Information

Copy link

netlify bot commented Jul 3, 2024

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 8d98ec0
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/66859f3dec657d0008d8d59d
😎 Deploy Preview https://deploy-preview-2918--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@NataliaTepluhina NataliaTepluhina merged commit 5a02126 into vuejs:main Jul 9, 2024
5 checks passed
@AloisSeckar AloisSeckar mentioned this pull request Jul 18, 2024
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.

2 participants