Skip to content

Commit

Permalink
add button text props
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpc94 committed Nov 2, 2023
1 parent b367e51 commit 22d8c25
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ storiesOf("Components/Organisms/Details Expandable", module)
</details-expandable-ripe>
`
}));




Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<button-color
class="details-expandable-btn-discard"
v-bind:size="'small'"
v-bind:text="'Discard changes'"
v-bind:text="discardButtonText"
v-bind:secondary="true"
v-bind:icon="'close'"
v-on:click="event => onDiscardHandler(event)"
/>
<button-color
class="details-expandable-btn-save"
v-bind:size="'small'"
v-bind:text="'Save changes'"
v-bind:text="saveButtonText"
v-bind:icon="'save'"
v-on:click="event => onSaveHandler(event)"
/>
Expand All @@ -48,8 +48,8 @@
}
.details-expandable-btn-container {
height: 25px;
float: right;
height: 25px;
margin-top: 50px;
}
Expand All @@ -64,22 +64,24 @@
.details-expandable-section {
cursor: pointer;
display: flex;
}
.details-expandable-section-hide {
border-bottom: 1px solid #e4e8f0;
height: 25px;
margin-top: 25px;
overflow: hidden;
position: relative;
padding-bottom: 25px;
margin-top: 25px;
border-bottom: 1px solid var(--dividers-border-bottom-header, #E4E8F0);
position: relative;
}
.details-expandable-section-show {
height: auto;
overflow: visible;
position: relative;
margin-top: 25px;
overflow: visible;
padding-bottom: 25px;
position: relative;
}
.details-expandable-header {
Expand Down Expand Up @@ -114,6 +116,14 @@ export const DetailsExpandable = {
labelFontSize: {
type: Number,
default: null
},
discardButtonText: {
type: String,
default: "Discard changes"
},
saveButtonText: {
type: String,
default: "Save changes"
}
},
data: function() {
Expand Down

0 comments on commit 22d8c25

Please sign in to comment.