@bspk/ui-ngx 1.1.3 → 1.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bspk/ui-ngx",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "license": "CC-BY-4.0",
5
5
  "type": "module",
6
6
  "repository": {
package/styles/base.scss CHANGED
@@ -207,13 +207,10 @@ body[data-bspk] {
207
207
  }
208
208
 
209
209
  [data-attachment-wrapper] {
210
- display: inline-flex;
211
- align-items: center;
212
- justify-content: center;
210
+ display: block;
213
211
  position: relative;
214
212
  width: fit-content;
215
213
  height: fit-content;
216
- flex-shrink: 0;
217
214
 
218
215
  [data-attachment] {
219
216
  position: absolute;
@@ -229,6 +226,19 @@ body[data-bspk] {
229
226
  display: none !important;
230
227
  }
231
228
 
229
+ /* This is used for content that should be visually hidden but still accessible to screen readers. */
230
+ [data-invisible] {
231
+ position: absolute;
232
+ width: 1px;
233
+ height: 1px;
234
+ padding: 0;
235
+ margin: -1px;
236
+ overflow: hidden;
237
+ clip: rect(0, 0, 0, 0);
238
+ white-space: nowrap;
239
+ border: 0;
240
+ }
241
+
232
242
  [data-bspk='link'] {
233
243
  @extend %link;
234
244
  }