We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60b3aa commit ca32cddCopy full SHA for ca32cdd
shiny/ui/_theme.py
@@ -447,6 +447,13 @@ def add_sass_layer_file(self: T, path: str | pathlib.Path) -> T:
447
add_method = getattr(self, f"add_{key}", None)
448
if add_method:
449
add_method("".join(value))
450
+ else:
451
+ # We'd get here if we add a new layer boundary name but forget to
452
+ # include it in the supported `.add_{layer}()` methods.
453
+ raise ValueError(
454
+ f"Unsupported Sass layer: {key}. Please report this issue to the "
455
+ "Shiny maintainers at https://github.com/posit-dev/py-shiny."
456
+ )
457
458
return self
459
0 commit comments