I've created a page featuring two svg arrows, and here is the code portion:
<div class="button prev-button" v-on:click="prevPage">
<svg class="button-icon" stroke-linecap="round" stroke-width="1" stroke="rgb(0,0,0)" stroke-opacity="0.2" fill="none" stroke-linejoin="round" viewBox="0 0 5 6" xmlns="http://www.w3.org/2000/svg">
<path d="M4,0L1,3L4,6" ></path>
</svg>
</div>
<div class="button next-button" v-on:click="nextPage">
<svg class="button-icon" stroke-linecap="round" stroke-width="1" stroke="rgb(0,0,0)" stroke-opacity="0.2" fill="none" stroke-linejoin="round" viewBox="0 0 5 6" xmlns="http://www.w3.org/2000/svg">
<path d="M1,0L4,3L1,6" ></path>
</svg>
</div>
Interestingly, both svg attributes are the same in this case. Is there any way to declare them collectively? For example, could it be done like this:
svg {
attribute1: value1;
attribute2: value2;
...
}
Your input on this matter would be much appreciated!