diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css index 8f7dd4863..8737844e3 100644 --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -508,6 +508,11 @@ fieldset { padding: 0; } +ol, +ul { + margin: 0; +} + /** * Suppress the focus outline on elements that cannot be accessed via keyboard. * This prevents an unwanted focus outline from appearing around elements that @@ -603,7 +608,6 @@ button, .list-reset { list-style: none; - margin: 0; padding: 0; } @@ -4447,7 +4451,6 @@ button, @media (min-width: 576px) { .sm\:list-reset { list-style: none; - margin: 0; padding: 0; } @@ -8292,7 +8295,6 @@ button, @media (min-width: 768px) { .md\:list-reset { list-style: none; - margin: 0; padding: 0; } @@ -12137,7 +12139,6 @@ button, @media (min-width: 992px) { .lg\:list-reset { list-style: none; - margin: 0; padding: 0; } @@ -15982,7 +15983,6 @@ button, @media (min-width: 1200px) { .xl\:list-reset { list-style: none; - margin: 0; padding: 0; } diff --git a/css/preflight.css b/css/preflight.css index 2730fde63..35466d2d4 100644 --- a/css/preflight.css +++ b/css/preflight.css @@ -508,6 +508,11 @@ fieldset { padding: 0; } +ol, +ul { + margin: 0; +} + /** * Suppress the focus outline on elements that cannot be accessed via keyboard. * This prevents an unwanted focus outline from appearing around elements that diff --git a/docs/source/docs/lists.blade.md b/docs/source/docs/lists.blade.md index 1084bf956..86c374a5b 100644 --- a/docs/source/docs/lists.blade.md +++ b/docs/source/docs/lists.blade.md @@ -15,7 +15,7 @@ features: 'rows' => [ [ '.list-reset', - "list-style: none;\nmargin: 0;\npadding: 0;", + "list-style: none;\npadding: 0;", "Disable default browser styling for lists and list items.", ], ] diff --git a/src/generators/lists.js b/src/generators/lists.js index 2f68e8f62..bda288913 100644 --- a/src/generators/lists.js +++ b/src/generators/lists.js @@ -4,7 +4,6 @@ export default function() { return defineClasses({ 'list-reset': { 'list-style': 'none', - margin: '0', padding: '0', }, })