Skip to content

Commit

Permalink
fix(typography): fix the language tag for Korean
Browse files Browse the repository at this point in the history
  • Loading branch information
xfq authored and kirklin committed Sep 22, 2023
1 parent 33dbec5 commit b06169f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/typography/css/nonCjkBlock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isObject, serializeCSS } from "../../utils";

export const getNonCjkBlockCss = (selectorName: string, css: Record<string, string> | string) => {
return `.${selectorName} em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .${selectorName} em:not(:lang(zh)) { ${isObject(css) ? serializeCSS(css) : css} }`;
return `.${selectorName} em:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)), .${selectorName} em:not(:lang(zh)) { ${isObject(css) ? serializeCSS(css) : css} }`;
};
2 changes: 1 addition & 1 deletion src/typography/css/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const generateOtherCss = (selectorName: string) => {
text-emphasis: filled circle;
text-emphasis-position: under right;
}
.${selectorName} .${selectorName}-em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .${selectorName} .${selectorName}-em:not(:lang(zh)) {
.${selectorName} .${selectorName}-em:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)), .${selectorName} .${selectorName}-em:not(:lang(zh)) {
-webkit-text-emphasis: none;
text-emphasis: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/typography/preflights/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ChineseBase = {
"text-align": "justify",
},

"p:not(:lang(zh)):not(:lang(ja)):not(:lang(kr))": {
"p:not(:lang(zh)):not(:lang(ja)):not(:lang(ko))": {
"text-align": "start",
},

Expand Down

0 comments on commit b06169f

Please sign in to comment.