Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
refactor(typography): adjustMargin defaults to false
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Feb 6, 2018
1 parent c73d745 commit 7736958
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion components/Typography/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
},
level: {
type: Number,
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
}
},
computed: {
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Caption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
}
},
computed: {
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Display.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
},
level: {
type: Number,
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Headline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
}
},
computed: {
Expand Down
90 changes: 45 additions & 45 deletions components/Typography/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,102 +24,102 @@

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| level | Number | - | true | body level could be 1 or 2 |
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Number | - | body level could be 1 or 2 |
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Button

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Caption

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Display

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| level | Number | - | true | display level could be between 1 and 4 |
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Number | - | display level could be between 1 and 4 |
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Headline

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Subheading

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| level | Number | - | true | subheading level could be 1 or 2 |
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Number | - | subheading level could be 1 or 2 |
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

## Title

### Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| adjustMargin | Boolean | true | - | adjust margins to other elements |
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| adjustMargin | Boolean | false | adjust margins to other elements |

### Slots

| Slot | Prop dependencies | Description |
|------|-------------------|-------------|
| default | - | content |
| Slot | Description |
|------|-------------|
| default | content |

### Reference

Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Subheading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
},
level: {
type: Number,
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/Title.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
props: {
adjustMargin: {
type: Boolean,
default: true
default: false
}
},
computed: {
Expand Down

0 comments on commit 7736958

Please sign in to comment.