diff --git a/client/scss/components/_filters.scss b/client/scss/components/_filters.scss index 70bd8ad801..34c4099143 100644 --- a/client/scss/components/_filters.scss +++ b/client/scss/components/_filters.scss @@ -38,3 +38,8 @@ height: theme('fontSize.16'); } } + +.w-active-filters { + @apply w-m-0 w-py-4 w-bg-surface-header w-border-b w-border-border-furniture w-flex w-flex-wrap w-list-none w-gap-2; + @include nice-padding; +} diff --git a/client/scss/components/_pill.scss b/client/scss/components/_pill.scss new file mode 100644 index 0000000000..34b00d0fd4 --- /dev/null +++ b/client/scss/components/_pill.scss @@ -0,0 +1,12 @@ +.w-pill { + @apply w-flex w-items-center; + min-height: theme('spacing[6.5]'); + + &__content { + @apply w-pl-3 w-py-1 w-rounded-l-xl w-bg-info-100 hover:w-bg-info-125 w-p-0 w-text-white hover:w-text-white w-pr-2 w-text-14 w-flex w-items-center w-border-r w-border-white-15 w-h-full; + } + + &__remove { + @apply w-pr-3 w-py-1 w-rounded-r-xl w-bg-info-100 hover:w-bg-info-125 w-text-white hover:w-text-white w-p-0 w-pl-2 w-flex w-items-center w-justify-center w-h-full; + } +} diff --git a/client/scss/core.scss b/client/scss/core.scss index 77853b43f3..9f74b1d7ed 100644 --- a/client/scss/core.scss +++ b/client/scss/core.scss @@ -142,6 +142,7 @@ These are classes for components. @import 'components/form-side'; @import 'components/userbar'; @import 'components/breadcrumbs'; +@import 'components/pill'; @import '../src/components/Sidebar/Sidebar'; @import '../src/components/Minimap/Minimap'; diff --git a/client/src/tokens/objectStyles.js b/client/src/tokens/objectStyles.js index 795eb1e5cc..43d5f02b1c 100644 --- a/client/src/tokens/objectStyles.js +++ b/client/src/tokens/objectStyles.js @@ -3,6 +3,7 @@ const borderRadius = { sm: '0.1875rem', // 3px DEFAULT: '0.3125rem', // 5px md: '0.625rem', // 10px + xl: '1.5rem', // 24px full: '100%', }; diff --git a/client/src/tokens/spacing.js b/client/src/tokens/spacing.js index 5dbd5cea02..e8a048acc7 100644 --- a/client/src/tokens/spacing.js +++ b/client/src/tokens/spacing.js @@ -11,6 +11,7 @@ const spacing = { 4: '1rem', 5: '1.25rem', 6: '1.5rem', + 6.5: '1.625rem', 7: '1.75rem', 7.5: '1.875rem', 8: '2rem', diff --git a/wagtail/admin/templates/wagtailadmin/shared/active_filters.html b/wagtail/admin/templates/wagtailadmin/shared/active_filters.html index 98f2c1cc6e..323d4a4717 100644 --- a/wagtail/admin/templates/wagtailadmin/shared/active_filters.html +++ b/wagtail/admin/templates/wagtailadmin/shared/active_filters.html @@ -1,12 +1,16 @@ -{% load i18n %} +{% load i18n wagtailadmin_tags %}