Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(widget): adds option to use inherited font in the widget #295

Merged
merged 2 commits into from
May 28, 2024

Conversation

mikaelbr
Copy link
Collaborator

@mikaelbr mikaelbr commented May 28, 2024

Added options to enforce use of inherited font for all elements in the widget. Will allow for parent container to dictate the use of font family. If not specified, the default behaviour is to use Roboto which is the default font for the hosted planner web solution (and webshop).

    const widget = window.PlannerWeb.createWidget({
      urlBase: 'https://reiseplanlegger.example.no/',
      language: 'nn', // supports 'nb', 'nn' and 'en'

      // Optional options
      outputOverrideOptions: {
        // Inherit font from page website.
        // By default it uses Roboto as the hosted planner web solution.
        inheritFont: false,
      },
    });

Fixes https://github.com/AtB-AS/kundevendt/issues/18111

Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
planner-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 11:48am

Copy link
Contributor

@jonasbrunvoll jonasbrunvoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mikaelbr mikaelbr merged commit e44df5e into main May 28, 2024
5 of 6 checks passed
@mikaelbr mikaelbr deleted the jmam/configurable-font branch May 28, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants