Here you go. I actually didn’t do the styling originally so I am trying to unpick the work of someone else which is making this a little bit more challenging.
If the style wasn’t being applied, the height: 28px would be crossed out in Dev tools to indicate it’s being set by something else/elsewhere. Adding the !important tag to the end would mean it would then override that other styling rule being applied to it. That isn’t the case though.
Got this to work by adjusting the padding and line-height of the element.
Anyone have any input/thoughts on the table header radius and does anyone know how to get the paging controls to move to the other side? A simple float:left, float:right doesn’t appear to work like it does in V7.
V7 With radius top-left/right: 10px
V8 Radius:
V8 Dev tools:
Hi Richard,
It’s a little tough to see what the problem is without seeing the css here as well, but I think that the styling is applied to the th elements instead of the tr element. Can you try to apply the styling to the tr element? Should look something like:
.cpdashboard-table table thead tr {
background: blue;
color: white;
font-weight: bold;
}
As for positioning of the control buttons, the element is flexed since MX8, so float doesn’t work anymore. You should apply some flex properties to the element instead. Many different solutions, but you could try something like:
.mx-datagrid .mx-grid-controlbar {
.mx-grid-toolbar {
flex: initial;
}
.mx-grid-pagingbar {
flex: 1
}
}
Fixed the rounding of table headers:
.mx-datagrid{
font-family: $font-family-bold;
font-size: $font-size-small;
& table thead tr{
color: white;
background-color: $brand-primary-light;
>th:first-child {
border-top-left-radius: 10px;
}
>th:last-child {
border-top-right-radius: 10px;
}
}
}
The important part is the th:first-child and th:last-child. This means it gets applied to the first and last columns and not each column individually.