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

translation(jp): merge contrast color calculation #3278

Merged
merged 676 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
676 commits
Select commit Hold shift + click to select a range
a0f9248
docs(angular): fix indentation in 5-adding-mobile.md (#2855)
bobbyg603 Jun 15, 2023
7540f82
docs(input): add label slot and no visible label demos (#2997)
liamdebeasi Jun 20, 2023
107a0c5
Merge remote-tracking branch 'origin/main' into feature-7.1
sean-perkins Jun 20, 2023
d9ca1bf
docs(select): add playgrounds for toggle icon customization (#2996)
averyjohnston Jun 20, 2023
fa7e948
docs(input): input masking examples (#2993)
sean-perkins Jun 20, 2023
e9dc746
docs(textarea): add label slot examples (#3001)
liamdebeasi Jun 20, 2023
a3ef3b3
chore: release ionic 7.1 docs
liamdebeasi Jun 21, 2023
78934cd
chore: add playgrounds for JP docs (#3004)
liamdebeasi Jun 21, 2023
dc99a6e
chore: upgrade maskito dependencies to v1 (#3005)
sean-perkins Jun 21, 2023
113dee7
fix(playground-tabs): show arrows on long list (#3009)
thetaPC Jun 22, 2023
9b65f4b
docs(native): improve grammar
CrazyChaoz Jun 23, 2023
03022cb
docs(your-first-app): switch to Date.now() (#2915)
biskweet Jun 26, 2023
7d9e1fe
docs(list): use dark mode aware color (#3015)
liamdebeasi Jul 6, 2023
806851b
docs(maskito): update credit card mask format (#3007)
sean-perkins Jul 6, 2023
b2b7df1
chore(ci): check for diff after running prettier (#2981)
sean-perkins Jul 6, 2023
63d96f3
chore: lint content (#3020)
liamdebeasi Jul 6, 2023
33b6def
docs(animation): add playground for override example (#3018)
liamdebeasi Jul 6, 2023
9be822b
docs(button): include accessibility section with best practices for t…
brandyscarney Jul 7, 2023
c768b6e
docs(vue): Improve documentation for removing Typescript steps in v7 …
dlodeprojuicer Jul 7, 2023
769c9a4
feat(playground): add support for generating a new playground (#2994)
mapsandapps Jul 10, 2023
337e869
chore: enable renovate for component playground deps (#3016)
sean-perkins Jul 10, 2023
6b2f6ed
Configure Renovate (#3017)
renovate[bot] Jul 10, 2023
af69fb0
docs(modal): clarify swipe to close section (#3021)
liamdebeasi Jul 10, 2023
9c06dc2
docs(react): clarify IonTabs behavior with IonPage (#3012)
liamdebeasi Jul 10, 2023
15817f4
chore(renovate): remove extending docs config (#3027)
sean-perkins Jul 11, 2023
2c7303e
docs(animation): add playground for group example (#3025)
liamdebeasi Jul 11, 2023
4face1f
docs(animations): add playground for chained animations (#3026)
sean-perkins Jul 11, 2023
718e779
chore(deps): update dependency vite to v2.9.16 [security] (#3028)
renovate[bot] Jul 11, 2023
756ebca
docs(animation): add playground for basic animations (#3031)
thetaPC Jul 12, 2023
03a8153
fix(deps): update dependency @types/node to v16.18.38 (#3033)
renovate[bot] Jul 12, 2023
b7348bd
fix(generation): correct angular imports (#3034)
mapsandapps Jul 12, 2023
b85fc79
docs(animations): buttons in StackBlitz demos do not need id (#3037)
brandyscarney Jul 12, 2023
fa26dee
chore(renovate): limit include paths (#3030)
sean-perkins Jul 12, 2023
431cecc
docs(animations): add playground for before and after hooks (#3035)
brandyscarney Jul 12, 2023
4a53559
docs(animations): add playground for preference based (#3036)
thetaPC Jul 13, 2023
4d8f605
docs(angular): add type assertion for your first app code snippet (#2…
josh33 Jul 13, 2023
1acc6e4
docs(animation): add playground example for double-click gesture (#3…
mapsandapps Jul 14, 2023
99b5f8a
docs(animation): add gesture animation playground (#3043)
liamdebeasi Jul 17, 2023
614519f
docs(gesture): add playground example for basic usage (#3038)
sean-perkins Jul 17, 2023
004c78b
docs(animation): add playground example for keyframes (#3039)
mapsandapps Jul 17, 2023
8e35d5f
docs(item-sliding): clarify expandable behavior (#3044)
liamdebeasi Jul 18, 2023
d57ab7e
docs(menu): add playgrounds for menu sides and multiple menus (#3049)
brandyscarney Jul 18, 2023
484dcce
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Jul 19, 2023
a86d8ae
fix(): fix conflict package.json
rdlabo Jul 19, 2023
6abe84b
chore(): fixed lint
rdlabo Jul 19, 2023
d6a3256
fix(ci): fix lint and diff
rdlabo Jul 19, 2023
0eff3b8
Merge remote-tracking branch 'origin/main' into feature-7.2
liamdebeasi Jul 19, 2023
c9a58f6
chore: lint
liamdebeasi Jul 19, 2023
f947b4a
chore: merge feature-7.2 docs
liamdebeasi Jul 19, 2023
d4f47d9
fix(script): follow new docs script
rdlabo Jul 20, 2023
e95ddf7
translate
rdlabo Jul 20, 2023
3ec07a7
chore
rdlabo Jul 20, 2023
80134d9
chore(): fix confrect
rdlabo Jul 20, 2023
7e04aef
fmt
rdlabo Jul 20, 2023
7476dbe
fix(): remove i18n folder from git
rdlabo Jul 20, 2023
8558baa
chore: JP docs point to v7 (#3056)
liamdebeasi Jul 25, 2023
1d2347e
chore: use correct name for JP docs (#3057)
liamdebeasi Jul 25, 2023
13b92d8
docs(android,iOS): link to capacitor getting started guide (#3055)
sean-perkins Jul 26, 2023
71e57ed
docs(theming): add section about safe area padding (#3065)
averyjohnston Aug 1, 2023
dc465d5
docs(quickstart): change wording for installing CLI (#3040)
Faizanahmedsy Aug 2, 2023
6c5b117
docs(previewing): adding instruction about "ionic serve --external" …
ashfaqhaq Aug 2, 2023
8ad4e0a
docs(theming): migrate Dark Mode Codepens to playground examples (#3067)
brandyscarney Aug 4, 2023
a47e79f
docs(api): add accessibility section for new htmlAttributes property …
brandyscarney Aug 4, 2023
20981f3
docs(vue): streamline usage examples with script setup syntax (#2956)
treighmawaka Aug 7, 2023
7e081fa
docs(input): update `Maskito` documentation link (#3072)
nsbarsukov Aug 8, 2023
43c3c9e
docs(react): document lifecycle hook dependencies arg (#3078)
liamdebeasi Aug 10, 2023
95eaf9f
docs(input): update `Maskito` repository link (#3074)
nsbarsukov Aug 10, 2023
dcba5c2
feat(playground): add prop to display console messages from demo (#3060)
averyjohnston Aug 10, 2023
ef426cd
fix(): consolidate docusaurus tab groupids (#3079)
mapsandapps Aug 10, 2023
3e68cbc
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Aug 13, 2023
c75a55a
fix(vue): fix bug with key type
fc92 Aug 14, 2023
760204f
fix(): alphabetize sidebar (#3081)
mapsandapps Aug 14, 2023
b4e56e2
Revert "fix(): alphabetize sidebar (#3081)" (#3087)
mapsandapps Aug 15, 2023
6bc7c76
chore: merge feature-7.3 documentation
liamdebeasi Aug 16, 2023
32bb2d0
docs(picker): describe how to set the initial value of a picker colum…
dtarnawsky Aug 22, 2023
dedf768
chore: standardize title tag format (#3092)
mapsandapps Aug 22, 2023
6e7737e
docs(datetime): add best practices for setting value async (#3053)
averyjohnston Aug 23, 2023
2479291
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Aug 24, 2023
1ca12d1
fix(docs): fix merge mistake
rdlabo Aug 24, 2023
9cdbac8
translate(core): create translate file
rdlabo Aug 24, 2023
8bbe61d
fmt
rdlabo Aug 24, 2023
b217c9b
translate(docs): translated
rdlabo Aug 24, 2023
e899a52
fmt
rdlabo Aug 24, 2023
ab5c450
chore(CODEOWNERS): create codeowners file and add me
mapsandapps Aug 25, 2023
f593596
feat(generation): generate playgrounds for guides (#3098)
mapsandapps Aug 28, 2023
c5e359e
Merge branch 'translation/jp' of github.com:ionic-team/ionic-docs
rdlabo Aug 31, 2023
84e8ae2
chore: format generated property types (#3080)
sean-perkins Sep 1, 2023
820edf0
docs(content): add playground for safe area usage (#3102)
thetaPC Sep 1, 2023
134d538
docs(fab): add playground for safe area workaround (#3105)
mapsandapps Sep 5, 2023
56a8060
feat(checkbox, radio, toggle, range): stacked labels for form control…
thetaPC Sep 5, 2023
ddb9aa9
docs(datetime): adds playground for styling calendar days using shado…
brandyscarney Sep 6, 2023
9e0fc43
chore(angular, html, react, vue): revert package versions on stackbli…
thetaPC Sep 6, 2023
288a265
feat(many): update playgrounds to use showConsole prop instead of sho…
averyjohnston Sep 7, 2023
bb90741
docs(input): notes about appropriate uses of counter (#3109)
mapsandapps Sep 8, 2023
af6249f
fix(nav-link): opt-out of vue reactivity for component binding (#3113)
sean-perkins Sep 11, 2023
f411bab
chore(react): update react router links (#3099)
chawes13 Sep 12, 2023
2b9c065
chore: merge feature-7.4 docs
liamdebeasi Sep 14, 2023
be7e132
docs(modal): modifying dismiss behavior in child components (#3117)
sean-perkins Sep 18, 2023
94d3785
chore: update v7 playground dependencies for React and Vue (#3122)
liamdebeasi Sep 18, 2023
add1d2d
chore(ci): renovate configurations for stackblitz templates (#3124)
sean-perkins Sep 19, 2023
c52d58d
fix(deps): update ionic to v6.7.5 (#3125)
renovate[bot] Sep 19, 2023
fdd89d9
chore(deps): update dependency typescript to v4.9.5 (#3126)
renovate[bot] Sep 20, 2023
12df9d2
fix(deps): update react monorepo (#3131)
renovate[bot] Sep 20, 2023
8a2baa8
fix(playground): better handle multiple files for Javascript (#3119)
mapsandapps Sep 20, 2023
644b86e
fix(playground): react stackbiltz template files (#3134)
sean-perkins Sep 20, 2023
6ce472e
fix(deps): update dependency vue to v3.3.4 (#3129)
renovate[bot] Sep 21, 2023
ef74820
fix(deps): update dependency vue-router to v4.2.4 (#3130)
renovate[bot] Sep 21, 2023
f1bc8ec
fix(deps): update dependency clsx to v2 (#3138)
renovate[bot] Sep 21, 2023
597d70f
chore(deps): update dependency vue-tsc to v1 (#3136)
renovate[bot] Sep 21, 2023
e047652
chore(deps): update dependency vite to v4 (#3135)
renovate[bot] Sep 21, 2023
6f37d49
chore(): update node to v19 (#3139)
mapsandapps Sep 21, 2023
846bf99
fix(deps): update dependency @types/node to v18 (#3137)
renovate[bot] Sep 21, 2023
bdff643
docs(item): add best practices and usage guides (#3123)
liamdebeasi Sep 22, 2023
694dff0
chore: rename dont props to doNot (#3144)
liamdebeasi Sep 22, 2023
1b2404b
chore: rename dont files to do-not (#3145)
liamdebeasi Sep 22, 2023
2256722
fix(deps): update ionic to v7.4.1 (#3146)
renovate[bot] Sep 25, 2023
60dccd9
chore(): add cspell and fix spelling errors in docs (#3069)
brandyscarney Sep 25, 2023
cfe152f
docs(select): reorder examples, add alert playground (#3153)
sean-perkins Sep 27, 2023
f292b83
fix(deps): update dependency @types/node to v18.17.19 (#3154)
renovate[bot] Sep 27, 2023
1175e76
fix(deps): update ionic to v7.4.2 (#3161)
renovate[bot] Oct 2, 2023
7ca45e9
fix(deps): update dependency @types/node to v18.18.0 (#3160)
renovate[bot] Oct 2, 2023
a2be927
chore(support): update support table (#3164)
mapsandapps Oct 4, 2023
2785e52
fix(deps): update dependency @types/node to v18.18.1 (#3163)
renovate[bot] Oct 4, 2023
9187065
docs: add docs for dynamic font scaling (#3111)
liamdebeasi Sep 11, 2023
9271827
docs(angular): add standalone documentation (#3115)
liamdebeasi Sep 19, 2023
0feb5f2
docs(dynamic-font): fix font family name (#3149)
averyjohnston Sep 25, 2023
38486e5
docs: add modules architecture usage (#3151)
liamdebeasi Sep 26, 2023
91c0b93
docs(angular): add angular standalone syntax to non-playground exampl…
liamdebeasi Sep 26, 2023
6f194e7
fix(angular): standalone guide formatting (#3152)
sean-perkins Sep 27, 2023
ffb5380
docs(angular): include add diff sign (#3157)
thetaPC Sep 28, 2023
a26ba83
docs(toast): add playground for positionAnchor (#3158)
averyjohnston Oct 4, 2023
85c3921
chore: resolve cspell errors (#3165)
sean-perkins Oct 4, 2023
60e1778
docs(select): keyboard navigation (#3156)
sean-perkins Oct 5, 2023
6eea516
chore(deps): update dependency vue-tsc to v1.8.14 (#3159)
renovate[bot] Oct 5, 2023
45528f6
fix(deps): update dependency web-vitals to v3 (#3142)
renovate[bot] Oct 5, 2023
d3f43b0
chore: team is requested for review for renovatebot prs (#3168)
liamdebeasi Oct 5, 2023
cfbe8ba
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Oct 6, 2023
2f5fc80
fix typo
rdlabo Oct 6, 2023
7b19aff
chore
rdlabo Oct 6, 2023
645ddb7
chore
rdlabo Oct 6, 2023
7746e0a
fix(deps): update dependency vue-router to v4.2.5 (#3147)
renovate[bot] Oct 6, 2023
397f526
fix(deps): update dependency @types/react to v18.2.22 (#3141)
renovate[bot] Oct 6, 2023
de551df
chore(deps): update dependency vue-tsc to v1.8.15 (#3170)
renovate[bot] Oct 9, 2023
014bb88
fix(deps): update dependency @types/node to v18.18.3 (#3171)
renovate[bot] Oct 9, 2023
8f9e0be
chore(deps): update dependency @vitejs/plugin-vue to v4.4.0 (#3172)
renovate[bot] Oct 9, 2023
aa20560
fix(deps): update ionic to v7.4.3 (#3178)
renovate[bot] Oct 9, 2023
a019fea
fix(deps): update react monorepo (#3179)
renovate[bot] Oct 9, 2023
d80acbd
fix(deps): update dependency web-vitals to v3.5.0 (#3173)
renovate[bot] Oct 9, 2023
42b1c29
chore: team is requested for review for renovatebot lockfile prs (#3180)
mapsandapps Oct 9, 2023
f3fae69
chore(deps): update dependency vite to v4.4.11 (#3177)
renovate[bot] Oct 9, 2023
6fba80d
feat(playground): persist framework and mode selection (#3169)
averyjohnston Oct 9, 2023
6c5c0be
fix(deps): update dependency @types/node to v18.18.4 (#3182)
renovate[bot] Oct 10, 2023
9914d65
chore(deps): update dependency vue-tsc to v1.8.16 (#3181)
renovate[bot] Oct 10, 2023
3e4a34c
fix(playground): wait until playground is in view before loading stor…
averyjohnston Oct 10, 2023
1e392de
docs(menu): clarify multiple side menu behavior (#3186)
liamdebeasi Oct 11, 2023
5996a81
chore: release ionic 7.5 docs
liamdebeasi Oct 11, 2023
e1fa8cb
docs(angular): document standalone routing usage (#3167)
liamdebeasi Oct 11, 2023
beacdbd
docs(many): remove legacy form control syntax from v7 playgrounds (#3…
averyjohnston Oct 12, 2023
ca7ce53
docs(angular): add a section to standalone migration for migrating co…
brandyscarney Oct 12, 2023
c6b74a4
chore(deps): update dependency vue-tsc to v1.8.18 (#3188)
renovate[bot] Oct 12, 2023
9b2db92
fix(jp): re-add files for removed playgrounds (#3189)
averyjohnston Oct 12, 2023
43beb07
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Oct 13, 2023
c7f3480
Merge branch 'translation/jp'
rdlabo Oct 13, 2023
7c4406e
chore: remove unused file
rdlabo Oct 13, 2023
3faa67b
fix(): fix cspell check
rdlabo Oct 13, 2023
9a9e01d
translate
rdlabo Oct 13, 2023
ec5b6b5
chore
rdlabo Oct 13, 2023
5d1c392
chore: run lint
rdlabo Oct 13, 2023
e517a99
feat(keyboard): replace Codepens with playgrounds using modern syntax…
averyjohnston Oct 13, 2023
3f35345
fix(deps): update dependency @types/react-dom to v18.2.11 (#3183)
renovate[bot] Oct 13, 2023
3d0cc32
chore: update codeowners (#3187)
mapsandapps Oct 13, 2023
0cbd440
fix(deps): update ionic to v7.5.0 (#3197)
renovate[bot] Oct 16, 2023
0523420
fix(deps): update react monorepo (#3196)
renovate[bot] Oct 16, 2023
516a79a
fix(deps): update dependency @types/node to v18.18.5 (#3195)
renovate[bot] Oct 16, 2023
8687974
chore(deps): update dependency vue-tsc to v1.8.19 (#3194)
renovate[bot] Oct 16, 2023
0d281f6
docs: clarify IonicSafeString usage (#3198)
liamdebeasi Oct 17, 2023
5da68c2
docs(input, textarea): fix specificity issues with theming playground…
liamdebeasi Oct 17, 2023
f3d1848
fix(backdrop): make backdrop visible in basic playground (#3200)
averyjohnston Oct 17, 2023
49bdd97
chore(deps): update dependency vite to v4.5.0 (#3206)
renovate[bot] Oct 23, 2023
afb6d66
docs(react): writing tests with testing-library (#2861)
sean-perkins Oct 23, 2023
b847e99
fix(deps): update dependency vue to v3.3.5 (#3204)
renovate[bot] Oct 23, 2023
a6ec0f3
fix(deps): update dependency @types/node to v18.18.6 (#3202)
renovate[bot] Oct 23, 2023
d5618dd
fix(deps): update react monorepo (#3205)
renovate[bot] Oct 23, 2023
b263d14
fix(deps): update ionic to v7.5.1 (#3203)
renovate[bot] Oct 23, 2023
d066d0f
fix(fab): remove unused component from playground (#3207)
mapsandapps Oct 23, 2023
8d76dd2
fix(deps): update dependency @types/react to v18.2.31 (#3209)
renovate[bot] Oct 24, 2023
ceafc79
chore(deps): update dependency @types/node to v20 (#3211)
renovate[bot] Oct 24, 2023
a9f9251
chore(deps): update dependency vue-tsc to v1.8.20 (#3212)
renovate[bot] Oct 27, 2023
0180170
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Oct 30, 2023
4b51c53
feat(api): get current readme
rdlabo Oct 30, 2023
76a2ed8
translate
rdlabo Oct 30, 2023
38c9474
fix(lint): ignore src/translate
rdlabo Oct 30, 2023
0fceeb1
chore(deps): update ionic to v7.5.2 (#3216)
renovate[bot] Oct 30, 2023
701520e
chore(deps): update dependency @types/node to v20.8.9 (#3214)
renovate[bot] Oct 30, 2023
9d9a504
chore(deps): update dependency vue-tsc to v1.8.22 (#3213)
renovate[bot] Oct 30, 2023
f739e7a
chore: add framework team as code owners (#3218)
liamdebeasi Oct 30, 2023
1ac10cd
fix(textarea): autogrow playground can scroll to the top of contents …
sean-perkins Oct 30, 2023
23bc2fa
docs: change comments for pwa-elements defineCustomElements (#3191)
jcesarmobile Oct 30, 2023
473f2dc
chore(docusaurus): update to latest (#3014)
thetaPC Oct 31, 2023
89b8764
fix(deps): update dependency vue to v3.3.6 (#3210)
renovate[bot] Oct 31, 2023
2d32d43
fix(deps): update dependency @types/react to v18.2.33 (#3215)
renovate[bot] Oct 31, 2023
3408291
chore(deps): update dependency vue to v3.3.7 (#3221)
renovate[bot] Nov 1, 2023
54317c1
docs(angular): clarify addIcons usage (#3222)
liamdebeasi Nov 1, 2023
38bf16a
docs(angular): add note on migration utility (#3223)
liamdebeasi Nov 1, 2023
cd73891
docs(react): link to vitest docs (#3225)
sean-perkins Nov 3, 2023
334de42
chore: regenerate cli.json (#3193)
jcesarmobile Nov 6, 2023
44f4688
chore(deps): update dependency @types/node to v20.8.10 (#3228)
renovate[bot] Nov 6, 2023
13e121a
chore(deps): update ionic to v7.5.3 (#3230)
renovate[bot] Nov 7, 2023
aef7605
chore(renovate): use chore subject line for prs (#3234)
sean-perkins Nov 7, 2023
94aba0a
chore(renovate): update config to ignore typescript updates in react …
brandyscarney Nov 8, 2023
1f674a2
docs(toggle): increase height of the label placement demo (#3238)
brandyscarney Nov 8, 2023
bb4eaf6
docs(react): v7 playgrounds use vite (#3236)
liamdebeasi Nov 9, 2023
a1ae5fb
docs(reorder): assign stable identity to loop items (#3239)
liamdebeasi Nov 9, 2023
619cc57
docs(angular): vscode settings for standalone usages (#3233)
sean-perkins Nov 9, 2023
2aa419a
fix(deps): update dependency @types/react to v18.2.34 (#3229)
renovate[bot] Nov 10, 2023
b5150ef
docs(alert): update content in playground examples (#3235)
sean-perkins Nov 10, 2023
0a5bc66
fix(playground): support angular 17 template (#3242)
sean-perkins Nov 10, 2023
86b35cc
chore(deps): update dependency vue to v3.3.8 (#3240)
renovate[bot] Nov 13, 2023
235ac9d
docs(react): v6 playgrounds use vite (#3246)
liamdebeasi Nov 13, 2023
b54b03b
chore(deps): update dependency @types/node to v20.9.0 (#3245)
renovate[bot] Nov 13, 2023
3f61d4d
chore(deps): update ionic to v7.5.4 (#3244)
renovate[bot] Nov 13, 2023
dfe43cd
chore(deps): update dependency @vitejs/plugin-vue to v4.4.1 (#3243)
renovate[bot] Nov 13, 2023
93acabe
chore(renovate): revert typescript ignore rule (#3248)
liamdebeasi Nov 14, 2023
5370a62
chore(deps): update react monorepo (#3241)
renovate[bot] Nov 14, 2023
b80ba57
docs(support): note angular 17 support (#3249)
liamdebeasi Nov 15, 2023
bb2ec28
chore(renovate): match explicitly the react-router and react-router-d…
sean-perkins Nov 21, 2023
f4e6514
chore(ci): run workflow against node v20 (#3259)
sean-perkins Nov 22, 2023
d70af5a
chore(deps): update ionic to v7.5.5 (#3253)
renovate[bot] Nov 27, 2023
4939e49
chore(deps): update dependency @types/node to v20.9.1 (#3252)
renovate[bot] Nov 27, 2023
1dfcbfc
chore(deps): update dependency @vitejs/plugin-react to v4.2.0 (#3254)
renovate[bot] Nov 27, 2023
0117214
chore(deps): update dependency @vitejs/plugin-vue to v4.5.0 (#3255)
renovate[bot] Nov 27, 2023
d6590f9
chore(deps): update dependency typescript to v5.3.2 (#3261)
renovate[bot] Nov 27, 2023
19a2543
chore(deps): update react monorepo (#3262)
renovate[bot] Nov 27, 2023
060e0cf
docs(react): update live reload to fix order (#3265)
sylvainvdm Nov 27, 2023
028dc50
chore(deps): update dependency @types/react-dom to v18.2.17 (#3267)
renovate[bot] Nov 28, 2023
faffcda
chore(deps): update dependency vue to v3.3.9 (#3270)
renovate[bot] Nov 28, 2023
1a2e8fd
docs(autofocus): playground examples for setFocus (#3258)
sean-perkins Nov 28, 2023
e801583
chore(deps): update dependency @types/node to v20.10.0 (#3269)
renovate[bot] Nov 28, 2023
10477c2
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Nov 29, 2023
ea98261
chore
rdlabo Nov 29, 2023
e046283
translate
rdlabo Nov 29, 2023
11da5da
chore
rdlabo Nov 29, 2023
c25bc41
Merge branch 'translation/jp'
rdlabo Nov 29, 2023
c6807ac
chore: update renovate to update react (#3273)
liamdebeasi Nov 29, 2023
c968351
fix(): copy package.json from repository
rdlabo Nov 30, 2023
73510e8
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Nov 30, 2023
032d0c8
fix(color-generator): contrast color calculation (#3274)
sean-perkins Nov 30, 2023
67d9d45
chore(deps): update ionic to v7.5.6 (#3268)
renovate[bot] Nov 30, 2023
24f7887
Merge branch 'main' of github.com:ionic-team/ionic-docs
rdlabo Dec 1, 2023
9c59ff6
Merge commit '00b4aace95d63c3ba572a02c45605be981f227e0'
rdlabo Dec 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions src/components/page/theming/_utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,28 @@ const rgbToYIQ = ({ r, g, b }: RGB): number => {
return (r * 299 + g * 587 + b * 114) / 1000;
};

const RED = 0.2126;
const GREEN = 0.7152;
const BLUE = 0.0722;
const GAMMA = 2.4;

const luminance = ({ r, g, b }: RGB) => {
const a = [r, g, b].map((v) => {
v /= 255;
return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, GAMMA);
});
return a[0] * RED + a[1] * GREEN + a[2] * BLUE;
};

// Original source: https://stackoverflow.com/a/9733420
const contrast = (rgb1: RGB, rgb2: RGB) => {
const lum1 = luminance(rgb1);
const lum2 = luminance(rgb2);
const brightest = Math.max(lum1, lum2);
const darkest = Math.min(lum1, lum2);
return (brightest + 0.05) / (darkest + 0.05);
};

export class Color {
readonly hex: string;
readonly hsl: HSL;
Expand Down Expand Up @@ -176,8 +198,11 @@ export class Color {
return /(^#[0-9a-fA-F]+)/.test(value.trim());
}

contrast(threshold = 128): Color {
return new Color(this.yiq >= threshold ? '#000' : '#fff');
contrast(): Color {
const blackContrastRatio = contrast(this.rgb, { r: 0, g: 0, b: 0 });
const whiteContrastRatio = contrast(this.rgb, { r: 255, g: 255, b: 255 });

return new Color(blackContrastRatio >= whiteContrastRatio ? '#000' : '#fff');
}

mix(from: string | RGB | HSL | Color, amount = 0.5): Color {
Expand Down
125 changes: 22 additions & 103 deletions static/code/stackblitz/v7/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions static/code/stackblitz/v7/vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.