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

Text in the "Errors" section of API reference pages is not selectable #5356

Open
hkosova opened this issue Dec 6, 2024 · 0 comments
Open
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@hkosova
Copy link

hkosova commented Dec 6, 2024

CLI Version (from fern.config.json)

0.45.0 (didn't check other versions)

Minimal API Specification

Docs must be configured with display-errors: true.

openapi: 3.1.0
info:
  title: Error responses
  version: 1.0.0

paths:
  /foos:
    get:
      summary: Get foo
      responses:
        '200':
          description: This text is selectable with mouse.
        '400':
          description: This text (and the entire contents of error responses) is NOT selectable with mouse.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'

components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: integer
          description: Error code
        message:
          type: string
          description: User-friendly error message.

Actual UI Behavior

unselectable-text.mov

In the meantime I added the following to our CSS as a workaround:

div[id$="#response.error"] {
  user-select: text;
}

Expected UI Behavior

Any text in the "Errors" section of API reference pages can be selected with a mouse.

Steps to Reproduce

  1. Open any endpoint in the API reference.
  2. Expand any error in the "Errors" section.
  3. Try to select the error description or any other text within that error by using a mouse.

Environment Details

Chrome, Safari of macOS 15

@hkosova hkosova added bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

1 participant