From f3f9ee7c3e4994ca5cb3a1579dfe7dc08c263882 Mon Sep 17 00:00:00 2001 From: Abdullah Ammar <50788123+abdmmar@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:07:27 +0700 Subject: [PATCH 1/2] Translate to Bahasa Indonesia --- .../6-shadow-dom-style/article.md | 116 +++++++++--------- 1 file changed, 56 insertions(+), 60 deletions(-) diff --git a/8-web-components/6-shadow-dom-style/article.md b/8-web-components/6-shadow-dom-style/article.md index 98e246a7f..bab792c00 100644 --- a/8-web-components/6-shadow-dom-style/article.md +++ b/8-web-components/6-shadow-dom-style/article.md @@ -1,16 +1,16 @@ -# Shadow DOM styling +# Gaya shadow DOM -Shadow DOM may include both ` ``` -...Then the `` would be without padding. +...Maka `` tidak akan memiliki padding. -It's very convenient, as we can setup "default" component styles in its `:host` rule, and then easily override them in the document. - -The exception is when a local property is labelled `!important`, for such properties, local styles take precedence. +Ini sangat memudahkan, karena kita dapat mengatur gaya komponen "default" dalam aturan `:host`-nya, dan kemudian dengan mudah menimpanya dalam dokumen. +Pengecualiannya adalah ketika properti lokal diberi label `!important`, untuk properti seperti itu, gaya lokal diutamakan. ## :host(selector) -Same as `:host`, but applied only if the shadow host matches the `selector`. +Sama seperti `:host`, tetapi hanya diterapkan jika shadow host cocok dengan `selector`. -For example, we'd like to center the `` only if it has `centered` attribute: +Sebagai contoh, kita ingin membuat `` berada di tengah jika hanya memiliki atribut `centered`: ```html run autorun="no-epub" untrusted height=80