From 9d715ec834f91e1354e0741b1c9b9e46c05e35de Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Fri, 12 Jul 2019 16:21:57 +0200 Subject: [PATCH] Get rid of icon prop and adjust examples to showcase how to use icons now Added aria-label example --- src/elements/OcButton.vue | 51 +++++++++++++++++++-------------- src/styles/theme/oc-button.scss | 10 +++---- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/src/elements/OcButton.vue b/src/elements/OcButton.vue index a3e373c9d..f32537a38 100644 --- a/src/elements/OcButton.vue +++ b/src/elements/OcButton.vue @@ -9,10 +9,7 @@ :disabled="disabled" @click="onClick" > - - - - + @@ -23,6 +20,8 @@ * Defaults to appearance that has white background with grey border. * Primary style should be used only once per view for main call-to-action. * + * When using icons inside of the button, assign to the icon small margin to the appropriate side (e. g. `uk-margin-small-right`). + * * ## Accessibility * ### Distinction when to use a `