Skip to content

fix: The "optional" label in the signature component is incorrectly positioned#8693

Open
canerakdas wants to merge 1 commit intonodejs:mainfrom
canerakdas:fix/signature-optional
Open

fix: The "optional" label in the signature component is incorrectly positioned#8693
canerakdas wants to merge 1 commit intonodejs:mainfrom
canerakdas:fix/signature-optional

Conversation

@canerakdas
Copy link
Member

Description

The "optional"(?) label in the signature component is incorrectly positioned.

Ref: nodejs/doc-kit#637

Validation

Related Issues

Related to nodejs/doc-kit#637

Copilot AI review requested due to automatic review settings March 3, 2026 20:44
@canerakdas canerakdas requested a review from a team as a code owner March 3, 2026 20:44
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nodejs-org Ready Ready Preview Mar 3, 2026 8:45pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the rendering order of the “optional” marker in the Signature header so it can appear in the conventional name?: position, and bumps the @node-core/ui-components package version to ship the UI tweak.

Changes:

  • Adjust SignatureHeader output so the optional ? appears before the : delimiter.
  • Bump @node-core/ui-components version from 1.6.1 to 1.6.2.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/ui-components/src/Common/Signature/SignatureHeader/index.tsx Updates how the signature name/optional marker/colon are rendered to correct the marker position.
packages/ui-components/package.json Patch version bump for publishing the UI change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.10%. Comparing base (4d21840) to head (b7952ab).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8693      +/-   ##
==========================================
+ Coverage   75.05%   75.10%   +0.04%     
==========================================
  Files         104      104              
  Lines        9161     9161              
  Branches      316      315       -1     
==========================================
+ Hits         6876     6880       +4     
+ Misses       2283     2279       -4     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, feel free to fast-track

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants