Skip to content

Commit a0cb1b5

Browse files
fix(button): projects filter button styles (#5250)
Fix paddings on all text-type buttons. Fix paddings on highlighted Projects Filter button.
1 parent 0a01335 commit a0cb1b5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

jsapp/js/components/common/button.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ $button-border-radius: 6px;
102102
left: calc(50% - #{$iconAlone * 0.5});
103103
}
104104

105-
&.k-button--type-text {
105+
// We need bigger specificity here to override paddings for has-label
106+
&.k-button--type-text.k-button--type-text {
106107
// We need the text button to align better with other UI elements, so we
107108
// want to avoid the transparent space on both sides.
108109
padding-left: 0;

jsapp/js/projects/projectViews/projectsFilter.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
}
3636
}
3737

38+
// We want the button to look distinct if there are any filters enabled, so that
39+
// user is not confused why some of their projects might not appear on the list.
3840
.buttonHasFilters {
3941
background-color: colors.$kobo-bg-blue;
42+
padding-left: 8px !important;
43+
padding-right: 8px !important;
4044
}

0 commit comments

Comments
 (0)