Skip to content

Default compact attribution control should stay expanded if container >= 640px ? #4749

Answered by acalcutt
Al-4SW asked this question in Q&A
Discussion options

You must be logged in to vote

In #3618 the attribution was made compact by default. In my PR #795 before that, the compact mode was made to default to open

It looks like to get the old behavior, you would need to set the compact option to 'undefined', which makes it default to the <640px wide compact, >640 not compact mode. Something like https://stackblitz.com/edit/web-platform-tqhkxm?file=index.html

With compact mode set to true, the attribution is always open by default, like

but can also be collapsed (and collapses on move)

With compact mode set to false, the attribution always shows like

but can't be collapsed

With compact mode set to 'undefined', the old behavior happens. Under 640px it looks like

(with a col…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Al-4SW
Comment options

You must be logged in to vote
4 replies
@Al-4SW
Comment options

@Al-4SW
Comment options

@acalcutt
Comment options

@acalcutt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants