Skip to content
Snippets Groups Projects
Commit 15d99e72 authored by Mike Herchel's avatar Mike Herchel Committed by Chris Wells
Browse files

Issue #3376203: Filter's checkbox labels look broken at smaller viewports

parent 520c2bf3
No related branches found
No related tags found
No related merge requests found
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
} }
.project__status-icon { .project__status-icon {
display: block; display: block;
line-height: 0px; font-size: 30px; /* Used to set size of icon, which is 1em. */
} }
.project__active-installs-text, .project__active-installs-text,
.project__install-count { .project__install-count {
...@@ -597,6 +597,9 @@ ...@@ -597,6 +597,9 @@
} }
/* <Project/ProjectIcon> */ /* <Project/ProjectIcon> */
.pb-icon {
max-height: 1em;
}
.pb-icon--project-listing { .pb-icon--project-listing {
width: 2.4em; width: 2.4em;
} }
...@@ -659,44 +662,26 @@ ...@@ -659,44 +662,26 @@
/* <Search/FilterGroup> */ /* <Search/FilterGroup> */
.filter-group__radio { .filter-group__radio {
position: absolute;
top: 2px;
width: 20px; width: 20px;
height: 20px; height: 20px;
inset-inline-start: 5px;
} }
.filter-group__radio:hover { .filter-group__radio:hover {
cursor: pointer; cursor: pointer;
} }
.filter-group { .filter-group {
position: relative; margin: 0;
display: inline-grid; padding: 0;
flex-direction: column; border: none;
flex-wrap: wrap;
justify-content: flex-start;
margin-top: 15px;
margin-bottom: 20px;
padding-top: 15px;
padding-inline-start: 15px;
} }
.filter-group__title-wrapper { .filter-group__title-wrapper {
margin-inline-end: 10px;
font-size: 18px; font-size: 18px;
margin-block-end: 10px;
} }
.filter-group__filter-options {
display: flex;
flex-direction: column;
flex-wrap: wrap;
margin-top: 10px;
}
.filter-group__filter-option { .filter-group__filter-option {
position: relative; display: flex;
margin-bottom: 10px; align-items: center;
line-height: 25px; gap: 10px;
margin-bottom: 5px;
} }
@media only screen and (max-width: 72rem) { @media only screen and (max-width: 72rem) {
...@@ -784,22 +769,12 @@ ...@@ -784,22 +769,12 @@
} }
/* <Search/SearchFilters> */ /* <Search/SearchFilters> */
@media only screen and (min-width: 1200px) { .search__filters {
.small-icons { display: flex;
margin-top: -3px; flex-wrap: wrap;
margin-inline-end: 1px; justify-content: space-between;
} gap: 10px;
.search__checkbox-label { padding: 20px;
display: flex;
padding-inline-start: 35px;
font-weight: normal;
}
.search__checkbox-label {
display: flex;
margin-right: unset;
padding-inline-start: 35px;
font-weight: normal;
}
} }
/* <Search/SearchFilterToggle> */ /* <Search/SearchFilterToggle> */
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -7,14 +7,10 @@ ...@@ -7,14 +7,10 @@
export let filterType; export let filterType;
</script> </script>
<div <fieldset class="filter-group">
role="group" <legend class="filter-group__title-wrapper">
aria-labelledby={filterTitle.replace(/\s+/g, '')}
class="filter-group"
>
<div class="filter-group__title-wrapper" id={filterTitle.replace(/\s+/g, '')}>
{filterTitle}: {filterTitle}:
</div> </legend>
<div class="filter-group__filter-options-wrapper"> <div class="filter-group__filter-options-wrapper">
<div class="filter-group__filter-options"> <div class="filter-group__filter-options">
{#each Object.entries(filterData) as [id, label]} {#each Object.entries(filterData) as [id, label]}
...@@ -37,4 +33,4 @@ ...@@ -37,4 +33,4 @@
{/each} {/each}
</div> </div>
</div> </div>
</div> </fieldset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment