Skip to content

Commit

Permalink
fix: sortable table th rendering bug (#1272)
Browse files Browse the repository at this point in the history
* fix: Safari rendering issues with Sortable Table th

* remove redundant styles

* Update snapshots

---------

Co-authored-by: Howard Edwards <[email protected]>
  • Loading branch information
stalgiag and howard-e authored Nov 7, 2024
1 parent cdd212d commit 77ba7cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions client/components/common/SortableTableHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,17 @@ const SortableTableHeaderButton = styled(Button)`
color: black;
font-size: 1rem;
font-weight: 700;
text-align: left;
width: 100%;
height: 100%;
min-height: 100%;
flex: 1 1 auto;
display: flex;
justify-content: space-between;
align-items: flex-end;
justify-content: space-between;
padding: 0.5rem;
border-radius: 0;
margin: 0;
// Force the button to stretch
position: relative;
height: stretch;
height: -webkit-fill-available;
height: -moz-available;
&:hover,
&:focus {
color: #0b60ab;
Expand Down
6 changes: 3 additions & 3 deletions client/tests/e2e/snapshots/saved/_data-management.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h2>Test Plans Status Summary</h2>
scope="col"
aria-sort="none"
class="css-i93j34">
<button type="button" class="css-ikcenn btn btn-primary">
<button type="button" class="css-1at7njo btn btn-primary">
Test Plan<svg
aria-hidden="true"
focusable="false"
Expand All @@ -442,7 +442,7 @@ <h2>Test Plans Status Summary</h2>
scope="col"
aria-sort="none"
class="css-i93j34">
<button type="button" class="css-ikcenn btn btn-primary">
<button type="button" class="css-1at7njo btn btn-primary">
Covered AT<svg
aria-hidden="true"
focusable="false"
Expand All @@ -463,7 +463,7 @@ <h2>Test Plans Status Summary</h2>
scope="col"
aria-sort="descending"
class="css-i93j34">
<button type="button" class="css-ikcenn btn btn-primary">
<button type="button" class="css-1at7njo btn btn-primary">
Overall Status<svg
aria-hidden="true"
focusable="false"
Expand Down

0 comments on commit 77ba7cf

Please sign in to comment.