Skip to content

Commit

Permalink
refactor: unify label text styling
Browse files Browse the repository at this point in the history
  • Loading branch information
peronczyk committed Jul 15, 2024
1 parent 812ba5e commit 833599d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 1 addition & 5 deletions src/popup/components/DetailsItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<Component
:is="expandable ? 'BtnPlain' : 'div'"
class="label"
class="text-label label"
@click="toggleExpanded()"
>
{{ label }}
Expand Down Expand Up @@ -89,13 +89,9 @@ export default defineComponent({
margin-top: 12px;
.label {
@extend %face-sans-15-medium;
display: flex;
align-items: center;
margin-bottom: 4px;
line-height: 16px;
color: rgba($color-white, 0.5);
.indent {
margin-left: 8px;
Expand Down
3 changes: 2 additions & 1 deletion src/popup/components/InputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
>
<label
:for="inputId"
class="label-text"
class="text-label"
@click="$emit('click', $event)"
>
<slot name="label">{{ label }}</slot>
Expand Down Expand Up @@ -283,6 +283,7 @@ export default defineComponent({
display: flex;
align-items: center;
margin-top: 16px;
margin-bottom: 2px;
&-text {
margin: 4px 0;
Expand Down
14 changes: 8 additions & 6 deletions src/popup/components/PayloadDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
class="payload"
>
<div class="payload-header">
<span class="label-text">
{{ $t('modals.send.payload') }}
</span>
<span
class="text-text"
v-text="$t('modals.send.payload')"
/>
<slot />
</div>

<div class="payload-text">
{{ payload }}
</div>
<div
class="payload-text"
v-text="payload"
/>
</div>
</template>

Expand Down
9 changes: 5 additions & 4 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,13 @@ hr {
margin-bottom: 1em;
line-height: 24px;
}
}

.label-text {
@extend %face-sans-15-medium;
&-label {
@extend %face-sans-15-medium;

color: $color-grey-dark;
line-height: 16px;
color: rgba($color-white, 0.5);
}
}

.relative {
Expand Down

0 comments on commit 833599d

Please sign in to comment.