File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
CommitRangeReleaseNotesTask/task Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 7171 transition : background 0.2s ;
7272 outline : none ;
7373 }
74-
75- .expandable-row :active ,
76- .expandable-row :focus {
74+ .expandable-row :hover {
7775 background : #e0eaff ;
7876 }
7977
496494 document .querySelectorAll (' .description-row' ).forEach (function (desc ) {
497495 desc .classList .remove (' open' );
498496 });
499- // Update ARIA
497+ // Update ARIA and remove highlight immediately
500498 document .querySelectorAll (' .expandable-row' ).forEach (function (r ) {
501499 r .setAttribute (' aria-expanded' , ' false' );
500+ r .classList .remove (' highlight' );
502501 });
503502 // Toggle: open if not open, close if open
504503 if (! isOpen) {
505504 descRow .classList .add (' open' );
506505 row .setAttribute (' aria-expanded' , ' true' );
506+ row .classList .add (' highlight' );
507+ setTimeout (function () {
508+ row .classList .remove (' highlight' );
509+ }, 1500 );
507510 }
508511 }
509512
Original file line number Diff line number Diff line change 1- 0a83546e-bcb8-405e-a9dd-0aaf61928c17
1+ 4ebdb70f-25d9-4998-9082-5c8a57aa02d4
You can’t perform that action at this time.
0 commit comments