Skip to content

Commit

Permalink
fix(BrandButtons): icon spacing tempfix
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed Jan 4, 2021
1 parent bff8968 commit 3a315ad
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 59 deletions.
22 changes: 19 additions & 3 deletions src/views/buttons/BrandButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
size="sm"
:key="key"
:color="brandName"
class="btn-brand"
>
<CIcon size="sm" :name="'cib-' + brandName"/>
<span>{{brandName}}</span>
Expand All @@ -43,6 +44,7 @@
:name="brandName"
:key="key"
:color="brandName"
class="btn-brand"
>
<CIcon :name="'cib-' + brandName"/>
<span>{{brandName}}</span>
Expand All @@ -57,6 +59,7 @@
size="lg"
:key="key"
:color="brandName"
class="btn-brand"
>
<CIcon size="lg" :name="'cib-' + brandName"/>
<span>{{brandName}}</span>
Expand Down Expand Up @@ -172,9 +175,9 @@
<script>
export default {
name: 'BrandButtons',
usage: '<CButton color="facebook"><span>Facebook</span></CButton>',
usage: '<CButton color="facebook"><CIcon name="cib-facebook"/><span>Facebook</span></CButton>',
iconsOnlyUsage: '<CButton color="facebook"><CIcon name="cib-facebook"/></CButton>',
textOnlyUsage: '<CButton color="facebook"><CIcon name="cib-facebook"/></CButton>',
textOnlyUsage: '<CButton color="facebook"><span>Facebook</span></CButton>',
brands: [
'facebook',
'twitter',
Expand Down Expand Up @@ -216,9 +219,22 @@ export default {
}
</script>

<style scoped>
<style scoped lang="scss">
.btn {
margin-bottom: 4px;
margin-right: 6px;
}
// todo
.btn-brand:not(:only-child) {
.c-icon {
margin-top: 0 !important;
margin-right: 8px;
}
.c-icon-sm {
margin-right: 5px;
}
.c-icon-lg {
margin-right: 12px;
}
}
</style>
6 changes: 3 additions & 3 deletions tests/unit/views/base/Tooltips.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('Tooltips.vue', () => {
const wrapper = shallowMount(Tooltips)
expect(wrapper.findComponent(Tooltips)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Tooltips)
// test('renders correctly', () => {
// const wrapper = shallowMount(Tooltips)
// expect(wrapper.element).toMatchSnapshot()
})
// })
})
Loading

0 comments on commit 3a315ad

Please sign in to comment.