Skip to content

Fix colors of left and right parens of issue label are different#4064

Closed
rhysd wants to merge 1 commit intocli:trunkfrom
rhysd:color-right-paren-issue-labels
Closed

Fix colors of left and right parens of issue label are different#4064
rhysd wants to merge 1 commit intocli:trunkfrom
rhysd:color-right-paren-issue-labels

Conversation

@rhysd
Copy link

@rhysd rhysd commented Jul 30, 2021

This PR fixes small color issue on listing issues. Since the issue is very small, I made the fix and PR directly without making an issue.

Here are outputs of gh issue list before/after this fix.

Before (gh 1.13.1)

スクリーンショット 2021-07-31 2 14 33

Left paren of issue labels is gray but right paren of issue labels is white.

After

スクリーンショット 2021-07-31 2 15 17

Both parens are white.

Note

It is a bit difficult to make both parens gray because giving a color to right paren requires some hack. Issue labels are truncated when they are too long in truncateLabels function, but it truncates labels string without considering escape sequence.

@cliAutomation
Copy link
Collaborator

Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Thank you, and good catch!

Fix looks good but the final fix is going to be dependent on #4065 (comment). Let's wait for resolution of that one first.

@rhysd
Copy link
Author

rhysd commented Aug 3, 2021

Sure. Please feel free to close this if this fix is no longer necessary.

@mislav mislav closed this in #4079 Aug 4, 2021
@rhysd rhysd deleted the color-right-paren-issue-labels branch August 4, 2021 14:53
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.

3 participants