I know I can do all sorts of wonderful things with & in Sass like
.date {
& input[readonly] {
cursor: default;
}
}
But, I've got input[readonly] being set by Foundation 6 to input[readonly] and this won't override it without !important being added. Seems like this should be solvable without !important, but you can't do this:
.date {
&input[readonly] {
cursor: default;
}
}
Since you'll just get .dateinput[readonly]{ ... }
. Is there a way around this so I can get input[readonly].date? The example below won't do that as & has to be used at the start of compound selectors:
.date {
input[readonly]& {
cursor: default;
}
}