You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/2.guide/1.features.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ You can further customize your badges by appending query parameters to the badge
159
159
160
160
##### `labelColor`
161
161
162
-
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix).
162
+
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix). The label text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
163
163
164
164
-**Default**: `#0a0a0a`
165
165
-**Usage**: `?labelColor=HEX_CODE`
@@ -173,16 +173,16 @@ Overrides the default label text. You can pass any string to customize the label
173
173
174
174
##### `color`
175
175
176
-
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix).
176
+
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix). The text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
177
177
178
178
-**Default**: Depends on the badge type (e.g., version is blue, downloads are orange).
Copy file name to clipboardExpand all lines: i18n/locales/ar.json
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -132,15 +132,18 @@
132
132
"skip_link": "تخطي إلى المحتوى الرئيسي",
133
133
"warnings": "تحذيرات:",
134
134
"go_back_home": "العودة إلى الصفحة الرئيسية",
135
-
"view_on_npm": "عرض على npm",
136
135
"per_week": "/ أسبوع",
137
136
"vanity_downloads_hint": "رقم زخرفي: لا توجد حزم معروضة | رقم زخرفي: للحزمة المعروضة | رقم زخرفي: للحزمتين المعروضتين | رقم زخرفي: مجموع {count} من الحزم المعروضة | رقم زخرفي: مجموع {count} من الحزم المعروضة | رقم زخرفي: مجموع {count} من الحزم المعروضة",
0 commit comments