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

Descriptions Item Prop "content-class" is not working #6699

Open
5 tasks done
melodiehsu opened this issue Jan 10, 2025 · 3 comments · May be fixed by #6701
Open
5 tasks done

Descriptions Item Prop "content-class" is not working #6699

melodiehsu opened this issue Jan 10, 2025 · 3 comments · May be fixed by #6701

Comments

@melodiehsu
Copy link

melodiehsu commented Jan 10, 2025

Describe the bug

I tried to add a class to description items (.n-descriptions-item), but I could not find the class that I defined for the element.
however, if i added the prop to the description, the class is added to the description items.

Steps to reproduce

  1. add content-class to n-descriptions-item element
  2. open the developer tools and select the element that is supposed to have the class.
  3. will find that the class is not applied to the element.

Link to minimal reproduction

https://codesandbox.io/p/sandbox/crazy-wave-dm4l5t?workspaceId=ws_Jny3gQvJtZpJPTGCkMyyTJ

System Info

System:
    OS: macOS 15.1.1
    CPU: (8) arm64 Apple M2
    Memory: 71.92 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 18.1.1
  npmPackages:
    naive-ui: ^2.41.0 => 2.41.0 
    vue: ^3.3.11 => 3.3.13

Used Package Manager

npm

Validations

@melodiehsu melodiehsu added the untriaged need to sort label Jan 10, 2025
@melodiehsu melodiehsu changed the title Description Item Prop "content-class" is not working Descriptions Item Prop "content-class" is not working Jan 10, 2025
@melodiehsu melodiehsu reopened this Jan 10, 2025
@jahnli
Copy link
Collaborator

jahnli commented Jan 10, 2025

Sandbox not found

@jahnli
Copy link
Collaborator

jahnli commented Jan 10, 2025

#6290 Could have something to do with this

@melodiehsu
Copy link
Author

Sandbox not found

i have checked and the access is set to public now.
could u please try again? let me know if it still doesn't work and i will find another way to reproduce the issue thanks!
https://codesandbox.io/p/sandbox/gifted-leaf-94jdk8

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 a pull request may close this issue.

2 participants