In this lesson, we'll use the "currentColor" CSS value to reduce the code redundancy of an "alert" user interface that has two states, "success" and "danger".
By using "currentColor" for the "border" property, we can eliminate the need to repeat the same color value for both states and instead inherit it from the parent element's color property.
-------------
Twitter: / arbaoui_mehdi
#css #frontend
16 сен 2024