Commit 849d777
RPP: improve visual look of annotation input with consent flow
When the consent flow popped up, the input lost focus and it renders as
a black rectangle (as it has no content). This CL updates it to maintain
the same visual state.
It also fixes a bug where focus was not properly restored; the early
exit condition in the setLabelEditabilityAndRemoveEmptyLabel function
meant that we wouldn't call focus, so I removed that. It's a pretty
cheap function that is not triggered that much so any theoretical boost
by early exiting is not worth it given it caused a bug.
Bug: 393063467
Change-Id: Id377a6ebee5b4ce0d4649e09f8fe7cbd5ed8d128
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6403241
Reviewed-by: Alina Varkki <[email protected]>
Commit-Queue: Alina Varkki <[email protected]>
Reviewed-by: Jack Franklin <[email protected]>1 parent e003c58 commit 849d777
File tree
2 files changed
+11
-8
lines changed- front_end/panels/timeline/overlays/components
2 files changed
+11
-8
lines changedLines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 457 | | |
463 | 458 | | |
464 | 459 | | |
| |||
538 | 533 | | |
539 | 534 | | |
540 | 535 | | |
| 536 | + | |
541 | 537 | | |
542 | 538 | | |
543 | 539 | | |
| |||
793 | 789 | | |
794 | 790 | | |
795 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
796 | 798 | | |
797 | 799 | | |
798 | 800 | | |
799 | 801 | | |
800 | | - | |
| 802 | + | |
801 | 803 | | |
802 | 804 | | |
803 | 805 | | |
804 | 806 | | |
805 | | - | |
| 807 | + | |
806 | 808 | | |
807 | 809 | | |
808 | 810 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments