swagger-api / swagger-api/swagger-ui

Colors defined twice with no default options

Open
#4,967 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The actions colors defined here:

https://github.com/swagger-api/swagger-ui/blob/9a9b63634fdbe1de0556818fdb78e211c4e2fa83/src/style/_variables.scss#L25-L32

Are also defined here: https://github.com/swagger-api/swagger-ui/blob/master/src/style/_colors.scss

And without the !default key.

It make colors overriding impossible with main.scss integration. The only workaround is to import files one by one without the _colors.scss one.

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

Start by comparing the action color definitions in src/style/_variables.scss and src/style/_colors.scss, then inspect how main.scss integrates them. Done means the colors have one consistent, overridable definition when using the main.scss integration, without requiring individual imports.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.