Skip to content

Commit

Permalink
feat(TestRun): add info about keyboard arrow navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
harunbleech committed Sep 27, 2024
1 parent 63ee31a commit 605c9f2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/icons/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions components/test-run-page/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,23 @@
}
}
}

&-navigation-info {
display: flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
margin-top: 1rem;
color: #757575;

svg {
color: $gray-70;
background: $gray-5;
border-radius: 3px;
padding: 5px;
width: 0.75rem;
height: 0.75rem;
}
}
}
}
5 changes: 5 additions & 0 deletions components/test-run-page/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
'alert' => $data['alert'],
'test_settings' => $data['test_settings'],
] ); ?>
<div class="vrts-test-run-page__content-navigation-info">
<?php esc_html_e( 'Navigate with arrow keys', 'visual-regression-tests' ); ?>
<?php vrts()->icon( 'arrow-up' ); ?>
<?php vrts()->icon( 'arrow-down' ); ?>
</div>
<?php else : ?>
<?php vrts()->component( 'test-run-empty' ); ?>
<?php endif; ?>
Expand Down

0 comments on commit 605c9f2

Please sign in to comment.