@@ -32,6 +32,43 @@ describe('Migrations > Add compat stylesheets', () => {
3232.sky-alert {
3333 margin-bottom: 20px;
3434}
35+ ` ;
36+
37+ const descriptionListContents = `/*******************************************************************************
38+ * TODO: The following component libraries introduced visual breaking changes
39+ * in SKY UX 7. Each block of CSS reintroduces the styles that were changed or
40+ * removed for backwards compatibility. You will need to do the following
41+ * before migrating to the next major version of SKY UX:
42+ * - Address each of the changes by following the instructions
43+ * in each block of CSS, then remove the block.
44+ * - Delete this file after all blocks have been addressed.
45+ * - Remove each occurrence of this file in your project's
46+ * angular.json file.
47+ *******************************************************************************/
48+
49+ /*******************************************************************************
50+ * COMPONENT: DESCRIPTION LIST
51+ *******************************************************************************/
52+
53+ /*******************************************************************************
54+ * The preset bottom margin has been removed from description list components
55+ * in horizontal and vertical modes in default theme and vertical mode in
56+ * modern. To implement the newly-recommended spacing, add the
57+ * \`sky-margin-stacked-lg\` CSS class to each \`sky-description-list\` component
58+ * in your application, then remove this block.
59+ *******************************************************************************/
60+
61+ .sky-description-list-vertical-mode .sky-description-list-content:last-child {
62+ margin-bottom: 15px;
63+ }
64+
65+ .sky-theme-modern .sky-description-list-vertical-mode .sky-description-list-content:last-child {
66+ margin-bottom: 20px;
67+ }
68+
69+ :root {
70+ --sky-compat-description-list-margin-bottom: 0;
71+ }
3572` ;
3673
3774 const runner = new SchematicTestRunner (
@@ -125,6 +162,18 @@ describe('Migrations > Add compat stylesheets', () => {
125162 ) ;
126163 } ) ;
127164
165+ it ( 'should add a compat stylesheet for the layout library' , async ( ) => {
166+ await validateCompatStylesheet (
167+ JSON . stringify ( {
168+ dependencies : {
169+ '@skyux/layout' : '6.0.0' ,
170+ } ,
171+ } ) ,
172+ descriptionListContents ,
173+ [ ]
174+ ) ;
175+ } ) ;
176+
128177 it ( 'should add a compat stylesheet for libraries in devDependencies' , async ( ) => {
129178 await validateCompatStylesheet (
130179 JSON . stringify ( {
0 commit comments