forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MM-25264] [MM-25265] Create and apply filter component to user grids (…
…mattermost#5882) * Filter component styling * Add filter component to team members, filters not hooked up * Fix types and set proper icon for filter * Fix tests * Update redux * Use existing translations when possible * Create admin_console_base / css_variables * Fix typo * Use selector for filtered count * Update redux * Fix typo * Handle filters with no search better * Translation for Role * Update snaps * Use the right name for filter checkbox * Remove forceupdate on updatevalues * Update redux * Remove filters enabled on datagrid * Review changes * Use classnames and fix options destructuring * Add newlines * MM-26965 Hide guest option in filters when guest accounts disabled * Update redux
- Loading branch information
Showing
34 changed files
with
1,274 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
.Filter { | ||
padding-left: 8px; | ||
position: relative; | ||
display: inline-block; | ||
|
||
.Filter_button { | ||
width: auto; | ||
height: 32px; | ||
|
||
background: var(--sys-center-channel-bg); | ||
border-radius: 4px; | ||
border: 0px; | ||
color: var(--sys-button-bg); | ||
font-size: 12px; | ||
padding: 0 10px; | ||
|
||
&.Filter__active, &:hover, &:focus { | ||
background: linear-gradient(0deg, rgba(var(--sys-button-bg-rgb), 0.12), rgba(var(--sys-button-bg-rgb), 0.12)), var(--sys-center-channel-bg); | ||
} | ||
} | ||
|
||
.Icon { | ||
margin-right: 2px; | ||
font-size: 14px; | ||
} | ||
|
||
.Filter_content { | ||
display: none; | ||
position: absolute; | ||
padding: 16px; | ||
padding-top: 8px; | ||
min-width: 256px; | ||
margin-bottom: 24px; | ||
|
||
background: var(--sys-center-channel-bg); | ||
|
||
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08); | ||
box-sizing: border-box; | ||
box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12); | ||
border-radius: 4px; | ||
z-index: 1; | ||
|
||
&.Filter__show { | ||
display: block; | ||
} | ||
|
||
hr { | ||
margin: 8px -16px; | ||
padding: 0; | ||
} | ||
} | ||
|
||
.Filter_header { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
|
||
.Filter_title { | ||
font-weight: bold; | ||
font-size: 14px; | ||
line-height: 14px; | ||
padding: 8px; | ||
color: var(--sys-center-channel-color); | ||
} | ||
|
||
.Filter_reset { | ||
font-size: 12px; | ||
line-height: 16px; | ||
padding: 8px | ||
} | ||
} | ||
|
||
.Filter_lists { | ||
white-space: nowrap; | ||
} | ||
|
||
.Filter_apply { | ||
float: right; | ||
margin: 0 8px 8px 0px; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
|
||
&:disabled { | ||
background: rgba(var(--sys-center-channel-color-rgb), 0.1); | ||
color: var(--sys-center-channel-color); | ||
} | ||
} | ||
|
||
.FilterList { | ||
display: inline-block; | ||
vertical-align: top; | ||
width: 140px; | ||
padding: 16px 16px 16px 8px; | ||
font-size: 14px; | ||
|
||
.FilterList__full { | ||
width: 280px; | ||
display: block; | ||
} | ||
|
||
.FilterList_name { | ||
font-size: 12px; | ||
font-weight: normal; | ||
padding-bottom: 8px; | ||
} | ||
|
||
.FilterList_checkbox { | ||
color: var(--sys-center-channel-color); | ||
|
||
input { | ||
vertical-align: bottom; | ||
position: relative; | ||
top: -4px; | ||
margin-right: 8px | ||
} | ||
|
||
label { | ||
font-weight: normal; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.