Skip to content

Commit

Permalink
Merge pull request #1324 from dbauszus-glx/styleparser-style-assignment
Browse files Browse the repository at this point in the history
The style must be assigned before the highlight.
  • Loading branch information
dbauszus-glx authored Jun 14, 2024
2 parents 698ab3a + f14213d commit fe121a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/layer/styleParser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ Parses and validates the style configuration of a layer.
*/
export default layer => {

layer.style ??= {}

// Assign a default highlight style and ensure that zIndex is infinity if not implicit.
layer.style.highlight ??= {}
layer.style.highlight.zIndex ??= Infinity
layer.style.highlight.highlightScale = layer.style.highlight.scale
delete layer.style.highlight.scale

layer.style ??= {}

warnings(layer)

if (layer.style?.theme) {
Expand Down

0 comments on commit fe121a9

Please sign in to comment.