8.0.8-rc1 missing margin in Edit Style window

#1

If I remember correctly, there used to be options for margin in previous version. Padding is still available but not Margin.

Also, it would be nice if we can edit the raw values of these styles similarly to how we can edit the json content of the views by holding shift and right click on the the view and copy/paste json.

Thanks

0 Likes

#2

Margins were causing problems with some elements in Perspective so they were removed. Official response can be found here:

1 Like

#3

Just to be clear, the margins attributes have not been removed. They just won’t show up as an editable option in the style editor. If you need margins, you can add them in manually through the JSON editor.

EDIT: Noticed that this an issue for style classes, where you wouldn’t be able to edit existing margins.

0 Likes

#4

The issue I have right now is that the compiled css file would ignore all the margin in the style classes.
I have to add margins in the theme css file manually since it would take a lot of effort to go to each component that uses style class with margin and add them in manually.
E.g. here’s what the style.json file for the Card style

image

and this is what shows up in the compiled style.css file
image

0 Likes

#5

Agreed. There is currently a pending fix. I will keep you posted when it gets moved forward.

2 Likes

#6

I hope it return to style class again.

1 Like

#7

In case anyone missed this.

1 Like