[PR #11369] [MERGED] Allow the entire Tab to be hit testable again #28526

Open
opened 2026-01-31 09:29:05 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11369
Author: @zadjii-msft
Created: 9/29/2021
Status: ✅ Merged
Merged: 9/29/2021
Merged by: @undefined

Base: main ← Head: dev/migrie/b/11294-OOF.jpg


📝 Commits (1)

  • a809348 Allow the entire Tab to be hit testable again

📊 Changes

1 file changed (+11 additions, -4 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalTab.cpp (+11 -4)

📄 Description

DESPITE the fact that there's a Background() API that we
could just call like:

  TabViewItem().Background(deselectedTabBrush);

We actually can't, because it will make the part of the tab that
doesn't contain the text totally transparent to hit tests. So we
actually do still need to set TabViewItemHeaderBackground manually.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11369 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 9/29/2021 **Status:** ✅ Merged **Merged:** 9/29/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/11294-OOF.jpg` --- ### 📝 Commits (1) - [`a809348`](https://github.com/microsoft/terminal/commit/a8093480154f446509d5ace3a19995ef7859ef71) Allow the entire Tab to be hit testable again ### 📊 Changes **1 file changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+11 -4) </details> ### 📄 Description DESPITE the fact that there's a `Background()` API that we could just call like: ```c++ TabViewItem().Background(deselectedTabBrush); ``` We actually can't, because it will make the part of the tab that doesn't contain the text totally transparent to hit tests. So we actually _do_ still need to set `TabViewItemHeaderBackground` manually. * Regressed in #11240 * Root cause up in https://github.com/microsoft/microsoft-ui-xaml/pull/3769 * [x] closes #11294 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:29:05 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28526