Skip to content

Commit

Permalink
feat(operation-summary): move JumpToPath component after collapse/exp…
Browse files Browse the repository at this point in the history
…and icons (#9230)

The goal if to have collapse/expand icon always 
in the extreme right possition.

Refs #9111
  • Loading branch information
kowalczyk-krzysztof authored Sep 22, 2023
1 parent 273bc83 commit c2c6ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/operation-summary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default class OperationSummary extends PureComponent {
}}
/>
}
<JumpToPath path={specPath} />{/* TODO: use wrapComponents here, swagger-ui doesn't care about jumpToPath */}
<button
aria-label={`${method} ${path.replace(/\//g, "\u200b/")}`}
className="opblock-control-arrow"
Expand All @@ -103,7 +104,6 @@ export default class OperationSummary extends PureComponent {
onClick={toggleShown}>
{isShown ? <ArrowUpIcon className="arrow" /> : <ArrowDownIcon className="arrow" />}
</button>
<JumpToPath path={specPath} />{/* TODO: use wrapComponents here, swagger-ui doesn't care about jumpToPath */}
</div>
)
}
Expand Down

0 comments on commit c2c6ba6

Please sign in to comment.