-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Swagger ui redesign/custom dropdown #5381
Swagger ui redesign/custom dropdown #5381
Conversation
…gins on button element)
* bump minimum `bundlesize` version * bump `node-sass` * bump webpack + webpack-dev-server; update lockfile
…sign/standardize-default-buttons # Conflicts: # src/style/_buttons.scss # src/style/_variables.scss
…com/SmartBear/swagger-ui into swagger-ui-redesign/custom-dropdown # Conflicts: # src/core/components/layout-utils/drop-down.jsx
…com/SmartBear/swagger-ui into swagger-ui-redesign/custom-dropdown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: did you change anything in layout-utils
besides restructuring each component into its own file?
I didn't go over each component with a fine-toothed comb, but if there are source changes within any components, let me know and I'll take a closer look with manual diffing.
Also: that there's a merge conflict on this branch with layout-utils.jsx
, take care to apply those changes to the relevant components.
src/core/utils.js
Outdated
@@ -843,3 +843,7 @@ export function paramToValue(param, paramValues) { | |||
|
|||
return values[0] | |||
} | |||
|
|||
export function xclass(...args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change request: use classnames
instead of keeping xclass
around. At a glance, looks like we can switch out the invocations without changing anything else.
(I know this PR didn't introduce the function, but since we're cleaning up layout-utils
, might as well fix this.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, removed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And nope, I didn't make any changes beside moving things around. I didn't want to go outside of the scope of this ticket. So the main files that need attention are src/core/components/layout-utils/drop-down.jsx
, src/core/components/schemes.jsx
and src/style/_dropdown.scss
.
merge back from swagger-ui facelift to our facelift
thanks @taraokelly! |
Custom select/dropdown
Description
Created custom Dropdown with new design. Updated Schemes to use this.
(The other selects and the icon will be updated in subsequent PRs)
[EDIT] the icon has been updated to use the new Icon component.
Motivation and Context
Facelift
How Has This Been Tested?
Manually
Screenshots (if appropriate):
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests