@bloom-housing/ui-components 8.0.4 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/src/blocks/ImageCard.js +10 -10
  2. package/dist/src/blocks/ImageCard.js.map +1 -1
  3. package/dist/src/headers/SiteHeader.d.ts +4 -1
  4. package/dist/src/headers/SiteHeader.js +43 -38
  5. package/dist/src/headers/SiteHeader.js.map +1 -1
  6. package/dist/src/headers/SiteHeader.stories.d.ts +1 -0
  7. package/dist/src/headers/SiteHeader.stories.js +2 -5
  8. package/dist/src/headers/SiteHeader.stories.js.map +1 -1
  9. package/dist/src/lists/PreferencesList.d.ts +1 -0
  10. package/dist/src/lists/PreferencesList.js +1 -1
  11. package/dist/src/lists/PreferencesList.js.map +1 -1
  12. package/dist/src/page_components/listing/ContentAccordion.d.ts +1 -0
  13. package/dist/src/page_components/listing/ContentAccordion.js +3 -3
  14. package/dist/src/page_components/listing/ContentAccordion.js.map +1 -1
  15. package/dist/src/page_components/listing/ContentAccordion.stories.d.ts +1 -0
  16. package/dist/src/page_components/listing/ContentAccordion.stories.js +3 -0
  17. package/dist/src/page_components/listing/ContentAccordion.stories.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/blocks/ImageCard.scss +1 -1
  20. package/src/blocks/ImageCard.tsx +19 -19
  21. package/src/global/accessibility.scss +22 -0
  22. package/src/global/app-css.scss +1 -0
  23. package/src/global/print.scss +1 -2
  24. package/src/headers/SiteHeader.scss +521 -351
  25. package/src/headers/SiteHeader.stories.tsx +10 -2
  26. package/src/headers/SiteHeader.tsx +89 -47
  27. package/src/lists/PreferencesList.tsx +4 -1
  28. package/src/page_components/listing/ContentAccordion.stories.tsx +11 -0
  29. package/src/page_components/listing/ContentAccordion.tsx +7 -6
@@ -81,7 +81,7 @@ const ImageCard = (props: ImageCardProps) => {
81
81
  )
82
82
  })
83
83
  return (
84
- <aside className="image-card__status" aria-label={`${props.description} Statuses`}>
84
+ <aside className="image-card__status" aria-label={`${props.description || ""} Statuses`}>
85
85
  {statuses}
86
86
  </aside>
87
87
  )
@@ -104,24 +104,6 @@ const ImageCard = (props: ImageCardProps) => {
104
104
  const image = (
105
105
  <>
106
106
  <div className="image-card">
107
- <div className="image-card-tag__wrapper">
108
- {props.tags?.map((tag, index) => {
109
- return (
110
- <React.Fragment key={index}>
111
- <Tag styleType={tag.styleType || AppearanceStyleType.warning}>
112
- {tag.iconType && (
113
- <Icon
114
- size={"medium"}
115
- symbol={tag.iconType}
116
- fill={tag.iconColor ?? IconFillColors.primary}
117
- />
118
- )}
119
- {tag.text}
120
- </Tag>
121
- </React.Fragment>
122
- )
123
- })}
124
- </div>
125
107
  <figure className={innerClasses.join(" ")}>
126
108
  {props.imageUrl ? (
127
109
  <img
@@ -174,6 +156,24 @@ const ImageCard = (props: ImageCardProps) => {
174
156
  )}
175
157
  </figure>
176
158
  {getStatuses()}
159
+ <div className="image-card-tag__wrapper">
160
+ {props.tags?.map((tag, index) => {
161
+ return (
162
+ <React.Fragment key={index}>
163
+ <Tag styleType={tag.styleType || AppearanceStyleType.warning}>
164
+ {tag.iconType && (
165
+ <Icon
166
+ size={"medium"}
167
+ symbol={tag.iconType}
168
+ fill={tag.iconColor ?? IconFillColors.primary}
169
+ />
170
+ )}
171
+ {tag.text}
172
+ </Tag>
173
+ </React.Fragment>
174
+ )
175
+ })}
176
+ </div>
177
177
  </div>
178
178
  {props.images && props.images.length > 1 && (
179
179
  <Modal
@@ -0,0 +1,22 @@
1
+ .sr-only {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ padding: 0;
6
+ margin: -1px;
7
+ overflow: hidden;
8
+ clip: rect(0, 0, 0, 0);
9
+ white-space: nowrap;
10
+ border-width: 0;
11
+ }
12
+
13
+ .not-sr-only {
14
+ position: static;
15
+ width: auto;
16
+ height: auto;
17
+ padding: 0;
18
+ margin: 0;
19
+ overflow: visible;
20
+ clip: auto;
21
+ white-space: normal;
22
+ }
@@ -57,6 +57,7 @@ main {
57
57
  @import "headers.scss";
58
58
  @import "blocks.scss";
59
59
  @import "accordion.scss";
60
+ @import "accessibility.scss";
60
61
  @import "custom_counter.scss";
61
62
  @import "forms.scss";
62
63
  @import "lists.scss";
@@ -4,8 +4,7 @@
4
4
  .button,
5
5
  button.button,
6
6
  .site-footer,
7
- a.logo:link:after,
8
- .navbar-notice {
7
+ a.logo:link:after {
9
8
  display: none;
10
9
  }
11
10