#2177·jsdoc

Auto-generated jsdoc-default.css uses deprecated 'tt' css selector and duplicate of '.details ul' selector

Author: mmanningsCreated Aug 5, 2026Updated Aug 5, 2026

After installing jsdoc in a file, which is generated by default - jsdoc-default.css at docs/styles/, has deprecated css selector tt as well as a duplication of .details ul. I was able to find these small issues with SonarCloud, two screenshots below:

ImageImage

File at jsdoc source code at GitHub

File is a part of a jsdoc-template-legacy, located at:
https://github.com/jsdoc/jsdoc/blob/main/packages/jsdoc-template-legacy/static/styles/jsdoc-default.css (line 57 - tt tag and line 259 .details ul)

Steps to fix

While I understand how to fix .details ul - I will merge it with previous initialization, what should be done with tt selector? Should it stay as-is, or be replaced with something like pre?

Your environment

Software Version
JSDoc 4.0.5
Node.js 26.5.0
npm 12.0.1
Operating system Arch Linux