Skip to content

Commit 33f2c84

Browse files
authored
docs: Add caveat about gap and padding not being used unless the navbar is fillable (#1673)
1 parent 00b4e0e commit 33f2c84

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

shiny/ui/_navs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def navset_bar(
12001200
provided, `fillable` makes the main content portion fillable.
12011201
gap
12021202
A CSS length unit defining the gap (i.e., spacing) between elements provided to
1203-
`*args`.
1203+
`*args`. This value is only used when the navbar is `fillable`.
12041204
padding
12051205
Padding to use for the body. This can be a numeric vector (which will be
12061206
interpreted as pixels) or a character vector with valid CSS lengths. The length
@@ -1209,7 +1209,7 @@ def navset_bar(
12091209
the second value will be used for left and right. If three, then the first will
12101210
be used for top, the second will be left and right, and the third will be
12111211
bottom. If four, then the values will be interpreted as top, right, bottom, and
1212-
left respectively.
1212+
left respectively. This value is only used when the navbar is `fillable`.
12131213
position
12141214
Determines whether the navbar should be displayed at the top of the page with
12151215
normal scrolling behavior ("static-top"), pinned at the top ("fixed-top"), or

shiny/ui/_page.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,18 @@ def page_navbar(
196196
(i.e., flexbox) container.
197197
fillable_mobile
198198
Whether or not ``fillable`` should apply on mobile devices.
199+
gap
200+
A CSS length unit defining the gap (i.e., spacing) between elements provided to
201+
`*args`. This value is only used when the navbar is _fillable_.
202+
padding
203+
Padding to use for the body. This can be a numeric vector (which will be
204+
interpreted as pixels) or a character vector with valid CSS lengths. The length
205+
can be between one and four. If one, then that value will be used for all four
206+
sides. If two, then the first value will be used for the top and bottom, while
207+
the second value will be used for left and right. If three, then the first will
208+
be used for top, the second will be left and right, and the third will be
209+
bottom. If four, then the values will be interpreted as top, right, bottom, and
210+
left respectively. This value is only used when the navbar is _fillable_.
199211
position
200212
Determines whether the navbar should be displayed at the top of the page with
201213
normal scrolling behavior ("static-top"), pinned at the top ("fixed-top"), or

0 commit comments

Comments
 (0)