-
Notifications
You must be signed in to change notification settings - Fork 14
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
story: provide lean context config #3010
Comments
@kyubisation @jeripeierSBB Now I'm wondering: do i have to implement a controller too? like the SbbLanguageController? because now the |
I would say no for now, even if it is an inconvenience. My goal would be to define the default via CSS and not via js, but that would probably be part of the css refactoring. |
Ok, then I can open a draft pr 👍 another question: do we need some kind of testing/visual testing/something for Manuel? |
Hm, maybe as you suggested a home-lean demo page? I think that should be enough for now. |
We want to provide defaults for the lean context.
We will do this programmatically by creating a function
isLean
, which checks whether the<html>
element has thesbb-lean
css class.The default value for the relevant properties is set that way:
public accessor size: 's' | 'm' | 'l' = isLean() ? 's' : 'm'
;The text was updated successfully, but these errors were encountered: