Skip to content

Fix the add/delete unfocused appearance buttons#12451

Merged
3 commits merged intomainfrom
dev/pabhoj/unfocused_header_fix
Feb 11, 2022
Merged

Fix the add/delete unfocused appearance buttons#12451
3 commits merged intomainfrom
dev/pabhoj/unfocused_header_fix

Conversation

@PankajBhojwani
Copy link
Contributor

@PankajBhojwani PankajBhojwani commented Feb 10, 2022

Summary of the Pull Request

The add/delete unfocused appearance buttons now have text on them and are closed to the Unfocused appearance header

References

#11353

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I work here

Validation Steps Performed

add

delete

@zadjii-msft
Copy link
Member

idly: Should it just be "Add" and "Delete"? The whole string there seems redundant with the title....

@zadjii-msft zadjii-msft added Area-SettingsUI Anything specific to the SUI Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels Feb 10, 2022
@PankajBhojwani
Copy link
Contributor Author

idly: Should it just be "Add" and "Delete"? The whole string there seems redundant with the title....

Yeah you're right, fixed!

@miniksa
Copy link
Member

miniksa commented Feb 10, 2022

The only nit I'd have is that the baseline of the button appears to be sitting on the baseline of the text, when I think it should actually be centered vertically on the entire row of text. (That is, the button is slightly too high up and should be slightly lower... including the descender area as part of its centering calculation and not only the ascender area above the baseline.)

@miniksa
Copy link
Member

miniksa commented Feb 10, 2022

Well I look closer and it is sort of below the baseline where the descenders are... but it still looks awfully "tall" over the top of the text beside it...

image

@miniksa
Copy link
Member

miniksa commented Feb 10, 2022

(The "+" and the "Add" also don't seem to have the same vertical centerline either...)

image

@PankajBhojwani
Copy link
Contributor Author

Well I look closer and it is sort of below the baseline where the descenders are... but it still looks awfully "tall" over the top of the text beside it...

Is this just because the text right beside it are non-ascenders? When I look at the space between the red/green lines below/above the 'd' or the 'f' (the ascender characters) the spacing seems fine to me...

(The "+" and the "Add" also don't seem to have the same vertical centerline either...)

Adjusted the margin here to make the "+" more center - here's the new look
add

@miniksa
Copy link
Member

miniksa commented Feb 11, 2022

Well I look closer and it is sort of below the baseline where the descenders are... but it still looks awfully "tall" over the top of the text beside it...

Is this just because the text right beside it are non-ascenders? When I look at the space between the red/green lines below/above the 'd' or the 'f' (the ascender characters) the spacing seems fine to me...

Yeah could be. I might just be taking crazy pills.

(The "+" and the "Add" also don't seem to have the same vertical centerline either...)

Adjusted the margin here to make the "+" more center - here's the new look add

Looks better to me, thank you.

@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Feb 11, 2022
@ghost
Copy link

ghost commented Feb 11, 2022

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@zadjii-msft zadjii-msft mentioned this pull request Feb 11, 2022
17 tasks
@ghost ghost merged commit c0083ef into main Feb 11, 2022
@ghost ghost deleted the dev/pabhoj/unfocused_header_fix branch February 11, 2022 14:25
@DHowett
Copy link
Member

DHowett commented Feb 11, 2022

@PankajBhojwani how does this look when the window is very small?

@DHowett
Copy link
Member

DHowett commented Feb 11, 2022

(and what if the translation for Add is very long)

@PankajBhojwani
Copy link
Contributor Author

PankajBhojwani commented Feb 11, 2022

how does this look when the window is very small?

narrowadd

narrowdelete

(and what if the translation for Add is very long)

longadd

longdelete

There seems to be enough space for approximately 2x the english 'Delete' size and 3x the english 'Add' size. We could add a maxwidth and add a tooltip to the button for even longer translations?

@DHowett
Copy link
Member

DHowett commented Feb 11, 2022

thanks!

zadjii-msft pushed a commit that referenced this pull request Mar 3, 2022
## Summary of the Pull Request
The add/delete unfocused appearance buttons now have text on them and are closed to the `Unfocused appearance` header

## References
#11353 

## PR Checklist
* [ ] Closes #xxx
* [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA
* [ ] Tests added/passed
* [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx
* [ ] Schema updated.
* [x] I work here

## Validation Steps Performed
<img width="548" alt="add" src="https://user-images.githubusercontent.com/26824113/153463971-de14a68b-5ed9-4768-80f8-2a5a5a21bc9f.png">
<img width="557" alt="delete" src="https://user-images.githubusercontent.com/26824113/153463993-9a7413d4-d895-4813-a6ff-1b157f1e72f4.png">
DHowett pushed a commit that referenced this pull request Mar 28, 2022
## Summary of the Pull Request
The add/delete unfocused appearance buttons now have text on them and are closed to the `Unfocused appearance` header

## References
#11353

## PR Checklist
* [ ] Closes #xxx
* [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA
* [ ] Tests added/passed
* [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx
* [ ] Schema updated.
* [x] I work here

## Validation Steps Performed
<img width="548" alt="add" src="https://user-images.githubusercontent.com/26824113/153463971-de14a68b-5ed9-4768-80f8-2a5a5a21bc9f.png">
<img width="557" alt="delete" src="https://user-images.githubusercontent.com/26824113/153463993-9a7413d4-d895-4813-a6ff-1b157f1e72f4.png">

(cherry picked from commit c0083ef)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-SettingsUI Anything specific to the SUI AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants