Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Fixed definition list wrapping to new row (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SteveBrush authored Oct 16, 2017
1 parent fdbfcef commit 97228eb
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@
</sky-definition-list-content>
</sky-definition-list>
</div>
<div id="screenshot-definition-list-3">
<sky-definition-list labelWidth="150px" defaultValue="No information found">
<sky-definition-list-heading>
A definition list with long text
</sky-definition-list-heading>
<sky-definition-list-content>
<sky-definition-list-label>
Label
</sky-definition-list-label>
<sky-definition-list-value>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam auctor leo at lectus fringilla lobortis. Donec ullamcorper sed dolor eget posuere. Phasellus aliquet, neque in cursus commodo, libero turpis rhoncus purus, vel gravida quam risus et arcu. Quisque auctor risus tristique ligula pretium commodo. Aenean viverra mi vel lectus rutrum pretium. Duis condimentum dolor justo, sit amet lobortis turpis pharetra et. Integer tempor faucibus risus quis semper. Praesent in lacinia justo. Sed posuere porta ex nec aliquet.
</sky-definition-list-value>
</sky-definition-list-content>
</sky-definition-list>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@ describe('Definition list', () => {

});

it('should match definition list screenshot with long text', () => {
return SkyVisualTest
.setupTest('definition-list')
.then(() => {
return SkyVisualTest.compareScreenshot({
screenshotName: 'definition-list-long-text',
selector: '#screenshot-definition-list-3'
});
});
});

});
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../scss/mixins";

.sky-definition-list-heading {
margin-bottom: $sky-margin-half;
margin-bottom: $sky-margin-half;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@import "../../scss/mixins";

:host {
flex: 0 0 90px;
}

.sky-definition-list-label {
margin-right: $sky-margin;
width: 90px;
word-wrap: break-word;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import "../../scss/mixins";

.sky-definition-list-no-value,
.sky-definition-list-value {
:host {
flex: 1;
}

0 comments on commit 97228eb

Please sign in to comment.