@deque/cauldron-styles 7.6.0-canary.fef8f6a8 → 7.7.0-canary.bcc89c80

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 (2) hide show
  1. package/dist/index.css +9 -3
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -3174,6 +3174,7 @@ button.TooltipTabstop {
3174
3174
  --skip-link-background-color: rgba(255, 255, 255, 0.95);
3175
3175
  --skip-link-focus-color: var(--focus-light);
3176
3176
  --skip-link-text-color: var(--text-color-base);
3177
+ --skip-link-offset: 11px;
3177
3178
  }
3178
3179
 
3179
3180
  .SkipLink {
@@ -3181,14 +3182,20 @@ button.TooltipTabstop {
3181
3182
  box-sizing: border-box;
3182
3183
  padding: var(--space-smallest);
3183
3184
  top: -999px;
3184
- left: 11px;
3185
+ left: var(--skip-link-offset);
3186
+ /* Never wider than the containing block, even with enlarged text. */
3187
+ min-width: min(
3188
+ calc(13rem + 2 * var(--space-smallest)),
3189
+ calc(100% - 2 * var(--skip-link-offset))
3190
+ );
3191
+ max-width: calc(100% - 2 * var(--skip-link-offset));
3185
3192
  opacity: 0;
3186
3193
  transition: 250ms opacity;
3187
3194
  z-index: var(--z-index-skip-container);
3188
3195
  }
3189
3196
 
3190
3197
  .SkipLink.SkipLink--active {
3191
- top: 11px;
3198
+ top: var(--skip-link-offset);
3192
3199
  }
3193
3200
 
3194
3201
  .SkipLink.SkipLink--fade {
@@ -3197,7 +3204,6 @@ button.TooltipTabstop {
3197
3204
  }
3198
3205
 
3199
3206
  .SkipLink a {
3200
- min-width: 13rem;
3201
3207
  background-color: var(--skip-link-background-color);
3202
3208
  display: block;
3203
3209
  color: var(--skip-link-text-color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "7.6.0-canary.fef8f6a8",
3
+ "version": "7.7.0-canary.bcc89c80",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",