swagger-api / swagger-api/swagger-ui

SwaggerUIBundle: the buttons on Authorize pop-up window are overlapped in Firefox

Open
#6,649 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat: browser specific cat: style & presentation type: bug
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q&A (please complete the following information)
  • OS: Windows 10
  • Browser: Firefox Mozilla
  • Version: 83.0 (also the version before this)
  • Method of installation: npm swagger-ui-dist
  • Swagger-UI version: 3.36.2
Describe the bug you're encountering

For embedded swagger-ui in html using SwaggerUIBundle:
In Firefox, the buttons on the Authorize pop-up window are overlapped:
image

They are OK in Chrome:
image

Also OK in Firefox (same version) but in the actual swagger-ui.html using maven springfox-swagger2 v2.9.2:
image

I am not sure if this issue always happen in Firefox or since certain version of Firefox. But I've tested this in the latest Firefox 83.0 and the version before this.

To reproduce...

Steps to reproduce the behavior:

  1. Add SwaggerUIBundle in html
  2. Open the html page in Firefox
  3. Click on 'Authorize' button
  4. See the 2 buttons are overlapped
Expected behavior

The buttons in Firefox should be rendered correctly like in Chrome, not overlapped.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the reported npm swagger-ui-dist setup and reproduce the Authorize pop-up through SwaggerUIBundle in Firefox. Compare its button layout with Chrome; done means the two buttons no longer overlap in Firefox while remaining correctly rendered in both browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.