Skip to content

[docs] Fix about page flags - #29314

Merged
mbrookes merged 1 commit into
mui:masterfrom
mbrookes:docs-fix-flags
Oct 31, 2021
Merged

mbrookes merged 1 commit into
mui:masterfrom
mbrookes:docs-fix-flags

Conversation

@mbrookes

@mbrookes mbrookes commented Oct 26, 2021 •

Copy link
Copy Markdown
Member

@mbrookes mbrookes added the docs Improvements or additions to the documentation. label Oct 26, 2021
@mbrookes
mbrookes requested a review from siriwatknp October 26, 2021 16:11
@mui-pr-bot

mui-pr-bot commented Oct 26, 2021 •

Copy link
Copy Markdown

No bundle size changes

Generated by 🚫 dangerJS against dd74395

@siriwatknp siriwatknp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 Nice.

@michaldudak

Copy link
Copy Markdown
Member

We could store the flags in our repo (it's just a few pngs after all) and not ever worry about another service being down again.

@mnajdova

Copy link
Copy Markdown
Member

We use different URL for the autocomplete countries, maybe we can use the same? https://github.com/mui-org/material-ui/blob/master/docs/src/pages/components/autocomplete/CountrySelect.tsx#L19

@siriwatknp

Copy link
Copy Markdown
Member

We could store the flags in our repo (it's just a few pngs after all) and not ever worry about another service being down again.

I suggest improving it later (maybe in the next quarter). @mbrookes your call.

@oliviertassinari

oliviertassinari commented Oct 30, 2021 •

Copy link
Copy Markdown
Member

Nice to see that we have consolidated on a single flag provider (same as https://deploy-preview-29314--material-ui.netlify.app/components/autocomplete/#country-select). The downside of this one is that the flag aren't squared, it doesn't provide the same visual output, but it's fine 👍

We use different URL for the autocomplete countries, maybe we can use the same? https://github.com/mui-org/material-ui/blob/master/docs/src/pages/components/autocomplete/CountrySelect.tsx#L19

@mnajdova I gave it a try, the png yield icons that don't look as great as the SVG (compression), the png is more efficient for the bandwidth, it's really true when the flag is complex.

We could store the flags in our repo (it's just a few pngs after all) and not ever worry about another service being down again.

I would anticipate this to be more time-consuming than changing the CDN provider every few years.

@mbrookes
mbrookes merged commit 536f102 into mui:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants