You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lock-pullrequest-aftermerge: false - # if you don't want this bot to automatically lock the pull request after merging (default - true)
27
+
26
28
27
29
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
28
30
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
@@ -32,5 +34,4 @@ jobs:
32
34
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
33
35
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
34
36
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
35
-
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
36
37
#use-dco-flag: true - If you are using DCO instead of CLA
Copy file name to clipboardExpand all lines: apps/website/src/routes/docs/headless/popover/index.mdx
+6-33Lines changed: 6 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,6 @@ For the following examples, we'll be using the Combobox component. `ComboboxPopo
313
313
floating={true}
314
314
// "stick" to the input
315
315
anchorRef={context.inputRef}
316
-
class="listbox"
317
316
>
318
317
<Slot />
319
318
</Popover>
@@ -366,43 +365,17 @@ If Tailwind is the framework of choice, then styles can be added using the [arbi
366
365
367
366
> The arbitrary variant can be customized/abstracted even further by [adding a variant](https://tailwindcss.com/docs/plugins#adding-variants) as a plugin in the tailwind config.
368
367
369
-
### Listbox preset
368
+
### Floating preset
370
369
371
-
By default, the popover API comes with built-in styles, including fixed behavior, margin, the list goes on.
370
+
By default, the popover API comes with built-in user agent styles, including fixed behavior, margin, the list goes on.
372
371
373
-
There are times when we want to override this behavior. An example being when we want an absolutely positioned listbox.
372
+
There are times when we want to override this behavior. An example being when we want floating behavior.
374
373
375
-
To do that, we can add the `listbox` class to the popover component.
374
+
Qwik UI strips the following styles when in floating mode:
376
375
377
-
If you need to override any of the listbox properties, use the following CSS variables:
376
+
<CodeSnippetname="floating.css" />
378
377
379
-
<AnatomyTable
380
-
firstColumnLabel="Property"
381
-
propDescriptors={[
382
-
{
383
-
name: 'margin',
384
-
description: '--listbox-margin',
385
-
},
386
-
{
387
-
name: 'padding',
388
-
description: '--listbox-padding',
389
-
},
390
-
{
391
-
name: 'border',
392
-
description: '--listbox-border',
393
-
},
394
-
{
395
-
name: 'overflow',
396
-
description: '--listbox-overflow',
397
-
},
398
-
{
399
-
name: 'position',
400
-
description: '--listbox-position',
401
-
},
402
-
]}
403
-
/>
404
-
405
-
> Another option is to use the `!important` syntax to override any of the CSS variable values.
378
+
We put it under an `@layer` so that it can be easily overridden when adding your own styles.
0 commit comments