-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI updates to WorkflowFilterSearch (#1613)
* Remove on:blur from TextFilter * Add close button button to filters * Update DatetimeFilter UI * Update TimePicker to allow for 24 hour clock * Disabled Apply when invalid or unspecified relative time * Add check for selected prop to MenuItem * Refactor SearchAttributeMenu * Use close icon and ghost variant for close filter button * Use IconButton for CloseFilter * Update snapshot * fix icon button so it stays rounded * Disable relative vs absolute inputs --------- Co-authored-by: Ross Edfort <[email protected]>
- Loading branch information
1 parent
f7cfab2
commit 2a1e8b7
Showing
12 changed files
with
343 additions
and
241 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
17 changes: 17 additions & 0 deletions
17
src/lib/components/workflow/filter-search/close-filter-button.svelte
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,17 @@ | ||
<script lang="ts"> | ||
import { getContext } from 'svelte'; | ||
import IconButton from '$lib/holocene/icon-button.svelte'; | ||
import { translate } from '$lib/i18n/translate'; | ||
import { FILTER_CONTEXT, type FilterContext } from './index.svelte'; | ||
const { resetFilter } = getContext<FilterContext>(FILTER_CONTEXT); | ||
</script> | ||
|
||
<IconButton | ||
label={translate('close')} | ||
icon="close" | ||
on:click={resetFilter} | ||
class="ml-1" | ||
/> |
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
Oops, something went wrong.
2a1e8b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
holocene – ./
holocene.preview.thundergun.io
holocene-git-main.preview.thundergun.io