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

docs: Fix NcAppNavigationCaption examples #5820

Merged
merged 1 commit into from
Jul 18, 2024
Merged

docs: Fix NcAppNavigationCaption examples #5820

merged 1 commit into from
Jul 18, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 18, 2024

☑️ Resolves

We need to use the real NcAppNavigation component as this is injecting other styles. Otherwise the styleguide will look very different to the real result.

🖼️ Screenshots

See especially the padding

🏚️ Before 🏡 After
Screenshot 2024-07-18 at 02-22-49 Nextcloud Vue Style Guide Screenshot 2024-07-18 at 02-22-02 Nextcloud Vue Style Guide

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

We need to use the real `NcAppNavigation` component as this is injecting other styles.
Otherwise the styleguide will look very different to the real result.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews feature: documentation Related to the documentation labels Jul 18, 2024
@susnux
Copy link
Contributor Author

susnux commented Jul 18, 2024

/backport to next

<NcActionButton>
<template #icon>
<Plus :size="20" />
<div class="styleguide-nc-content">
Copy link
Contributor

@Antreesy Antreesy Jul 18, 2024

Choose a reason for hiding this comment

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

To mock NcContent:

		provide() {
			return {
				'NcContent:setHasAppNavigation': () => {},
			}
		},

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: documentation Related to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants