Skip to content

Commit 00a2074

Browse files
committed
feat: Update template with new class
1 parent e9cce85 commit 00a2074

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
&.active,
4040
&.active span {
4141
color: $tutor-text-brand;
42+
font-weight: $tutor-font-weight-medium;
4243
}
4344

4445
&:hover,

assets/src/scss/frontend/kids/_dashboard.scss

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
@use './mixins' as *;
44

55
[data-tutor-ui='kids'] {
6-
.tutor-dashboard-nav-mobile-list > li > a,
7-
.tutor-dashboard-nav-mobile-list > li > button {
6+
.tutor-dashboard-nav-mobile-list {
87
.tutor-dashboard-nav-mobile-icon {
98
padding: $tutor-spacing-2;
109
}
1110

12-
span {
13-
&:last-of-type {
14-
color: $tutor-text-primary;
15-
font-weight: $tutor-font-weight-medium;
16-
}
11+
.tutor-dashboard-nav-mobile-text {
12+
color: $tutor-text-primary;
13+
font-weight: $tutor-font-weight-medium;
1714
}
18-
&.active span {
19-
&:first-of-type {
15+
16+
.active {
17+
.tutor-dashboard-nav-mobile-icon {
2018
@include tutor-kids-shadow(false, $tutor-border-brand, $tutor-radius-full, sm);
2119
background-color: $tutor-surface-brand-tertiary;
2220
}
23-
24-
&:last-of-type {
21+
.tutor-dashboard-nav-mobile-text {
2522
font-weight: $tutor-font-weight-semibold;
2623
}
2724
}

templates/dashboard/components/sidebar-nav-mobile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
->render();
6262
?>
6363
</span>
64-
<span class="tutor-tiny"><?php echo esc_html( $menu_title ); ?></span>
64+
<span class="tutor-tiny tutor-dashboard-nav-mobile-text"><?php echo esc_html( $menu_title ); ?></span>
6565
</a>
6666
</li>
6767
<?php
@@ -77,7 +77,7 @@
7777
->render();
7878
?>
7979
</div>
80-
<span class="tutor-tiny"><?php esc_html_e( 'Profile', 'tutor' ); ?></span>
80+
<span class="tutor-tiny tutor-dashboard-nav-mobile-text"><?php esc_html_e( 'Profile', 'tutor' ); ?></span>
8181
</a>
8282
</li>
8383
<?php
@@ -94,7 +94,7 @@
9494
<span class="tutor-dashboard-nav-mobile-icon">
9595
<?php SvgIcon::make()->name( Icon::ELLIPSES )->size( 20 )->render(); ?>
9696
</span>
97-
<span class="tutor-tiny"><?php esc_html_e( 'More', 'tutor' ); ?></span>
97+
<span class="tutor-tiny tutor-dashboard-nav-mobile-text"><?php esc_html_e( 'More', 'tutor' ); ?></span>
9898
</button>
9999
<!-- Popover panel -->
100100
<div

0 commit comments

Comments
 (0)