2.0.0
Background containers set the background color of an element and trigger the related color changes within contained components.
Use to set the background color of an element to be $mds-background-color-white
.
<div class="mds-container--white">
<mds-input placeholder="Input on White" id="input-id"></mds-input>
<mds-button variation="secondary"> Button on White </mds-button>
<mds-tag>Tag on White</mds-tag>
</div>
Use to set the background color of an element to be $mds-background-color-light-gray
and trigger the On Light
versions of contained components.
<div class="mds-container--light-gray">
<mds-input placeholder="Input on Light Grey" id="input-id"></mds-input>
<mds-button variation="secondary"> Button on Light Grey </mds-button>
<mds-tag>Tag on Light Grey</mds-tag>
</div>
Use to set the background color of an element to be $mds-background-color-dark-gray
and trigger the On Dark
versions of contained components.
<div class="mds-container--dark-gray">
<mds-input placeholder="Input on Dark Grey" id="input-id"></mds-input>
<mds-button variation="secondary"> Button on Dark Grey </mds-button>
<mds-tag>Tag on Dark Grey</mds-tag>
</div>
Use to set the background color of an element to be $mds-background-color-black
and trigger the On Black
versions of contained components.
<div class="mds-container--black">
<mds-input placeholder="Input on Black" id="input-id"></mds-input>
<mds-button variation="secondary"> Button on Black </mds-button>
<mds-tag>Tag on Black</mds-tag>
</div>