Skip to content

Commit

Permalink
Refactor pathway button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan2917 committed Dec 8, 2023
1 parent 4d2281d commit 653b993
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/web/src/pages/Pathway.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<div v-for="pathway in categoryObj['Pathways']" :key="pathway['Name'][0]" role="tablist">
<div class="mt-1 mb-1 w-100">
<!-- pathway button -->
<b-button @click="ShowPath(pathway)" squared variant="light" class="pathway-button m-0 ml-1">
<b-button @click="ShowPath(pathway)" class="pathway-button m-0 ml-1">
{{ pathway['Name'][0] }}
</b-button>
</div>
Expand Down Expand Up @@ -133,7 +133,7 @@
<div v-for="pathway in alphabetObj['Pathways']" :key="pathway['Name'][0]" role="tablist">
<div class="mt-1 mb-1 w-100">
<!-- pathway button -->
<b-button @click="ShowPath(pathway)" squared variant="light" class="pathway-button m-0 ml-1">
<b-button @click="ShowPath(pathway)" class="pathway-button m-0 ml-1">
{{ pathway['Name'][0] }}
</b-button>
</div>
Expand Down Expand Up @@ -380,16 +380,15 @@ export default {
transition: transform 0.3s;
}
/* Rotate the chevron when the button is active */
.button[aria-expanded="true"] .chevron {
transform: rotate(180deg);
margin-left: auto;
}
.pathway-button {
display: inline-block;
background: white;
border-style: none;
background-color: transparent;
text-align: justify;
width: 95%;
}
Expand Down

0 comments on commit 653b993

Please sign in to comment.