diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ae5aa09b..3f0e3d7525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## Version 7.0.0 + +**Potentially breaking change:** The first column is now fixed at 33.33% width. + +This change was made so long titles in the column would wrap instead of creeping +in on the space of the next column. If this - for some reason - is your desired +behaviour you need to override the `max-width` attribute to `100%`. + ## Version 6.0.1 * meta-data til styleguide diff --git a/less/ffe-details-list.less b/less/ffe-details-list.less index ceb5508ee4..0d83525c9d 100644 --- a/less/ffe-details-list.less +++ b/less/ffe-details-list.less @@ -31,6 +31,10 @@ &__details-col { &:nth-child(1) { + // This approach was used, rather than just width: 33.33%;, because of weird behavior + // with four columns where the first column would only wrap its children, not take up + // its designated width. + max-width: 33.33%; min-width: 33.33%; } diff --git a/package.json b/package.json index ef683217a2..4be23904a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ffe-details-list", - "version": "6.0.1", + "version": "7.0.0", "description": "Opplisting av attributter i en grid", "main": "index.js", "scripts": {