Skip to content

Setting which modules can pass context values outside of config #700

Open

Description

@Zurga

Currently, SurfaceBulma uses contexts to pass variable class names to components in slots. This works great and allows the user to use components with flexibility. A Link used inside a Navbar will have the correct class set without the user thinking about it.

However, due to the fact that allowing a component to do this is set in the config, the user of SurfaceBulma has to either manually add this, or add import_config ../deps/surface_buma/config/contexts to their own config.

Although this is not a hurdle that cannot be overcome, for the sake of ease of use, it would be nice if there was another way to configure this setting.

Maybe there is an undocumented way that I have missed, but setting @propagate_context_to_slots_map directly on a Component does get rid of the warning, but the values are not passed on to the slot.

Activity

  1. changed the title [-]Setting which modules can pass context values through slots at module level[/-] [+]Setting which modules can pass context values outside of config[/+] on Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions