Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/components/CommunityPortal/CPDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const FiltersSidebar = ({ darkMode }) => (
id="date-filter-input"
type="date"
placeholder="Ending After"
className={cx('date-filter', darkMode)}
className={`${cx('date-filter', darkMode)} ${styles['rectangular-dropdown']}`}
/>
</div>

Expand All @@ -191,7 +191,9 @@ const FiltersSidebar = ({ darkMode }) => (
type="select"
id="branches"
name="branches"
className={darkMode ? styles['filter-select-dark'] : ''}
className={`${styles['rectangular-dropdown']} ${
darkMode ? styles['filter-select-dark'] : ''
}`}
>
<option>Select branches</option>
</Input>
Expand All @@ -205,7 +207,9 @@ const FiltersSidebar = ({ darkMode }) => (
type="select"
id="themes"
name="themes"
className={darkMode ? styles['filter-select-dark'] : ''}
className={`${styles['rectangular-dropdown']} ${
darkMode ? styles['filter-select-dark'] : ''
}`}
>
<option>Select themes</option>
</Input>
Expand All @@ -219,7 +223,9 @@ const FiltersSidebar = ({ darkMode }) => (
type="select"
id="categories"
name="categories"
className={darkMode ? styles['filter-select-dark'] : ''}
className={`${styles['rectangular-dropdown']} ${
darkMode ? styles['filter-select-dark'] : ''
}`}
>
<option>Select categories</option>
</Input>
Expand Down
5 changes: 5 additions & 0 deletions src/components/CommunityPortal/CPDashboard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@
box-sizing: border-box;
}

/* Square the search-filter dropdowns (date + selects) */
.rectangular-dropdown {
border-radius: 0 !important;
}

.filter-item input:not([type="checkbox"]):not([type="radio"]):focus,
.filter-item select:focus {
border-color: #2c3e50;
Expand Down
Loading