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

Divider: Divider line doesn't show (Using the nuxt-primevue module) #5000

Closed
TM-SunnyDay opened this issue Dec 27, 2023 · 2 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@TM-SunnyDay
Copy link

TM-SunnyDay commented Dec 27, 2023

Describe the bug

I used the nuxt primevue module to use components in nuxt based on the documentation, but I found that the Divider component cannot display lines.

I have found the same issue, which should be caused by the import order of the style sheet, but in Nuxt, I don't know how to fix it.
#1086

In the server rendered page, its order is correct, so when the page is opened, the dividing line is displayed.

But after hydration, Nuxt seems to have moved the theme style file after the component style, which caused the split line to disappear.

image
image
image

I think the border top style in the theme should be set completely (border-top: 1px solid #e5e7eb;), just like other components, or CSS variables can be used to replace it(border-top: 1px var(--divider-border-style) #e5e7eb;).

Reproducer

https://stackblitz.com/edit/nuxt-starter-g9aefo?file=nuxt.config.ts,app.vue

PrimeVue version

3.45.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

Chrome 120.0.6099.130

Steps to reproduce the behavior

  1. Initialize Nuxt
  2. Installing the nuxt-primevue module
  3. Use any theme css file in the css option of nuxt.config.ts
  4. Using the Divider component

Expected behavior

No response

@TM-SunnyDay TM-SunnyDay added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 27, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 5, 2024
@antoinezanardi
Copy link

Do we have some news about this bug ?

@mertsincan
Copy link
Member

Hi,

This is related to theme. I set a milestone for it. We'll fix it before the milestone is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants