mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-09 22:50:41 +02:00
Fix broken attribute references (#4011)
This commit is contained in:
@@ -125,7 +125,7 @@ const Leaf = ({ attributes, children, leaf }) => {
|
|||||||
leaf.tag ||
|
leaf.tag ||
|
||||||
leaf.constant ||
|
leaf.constant ||
|
||||||
leaf.symbol ||
|
leaf.symbol ||
|
||||||
leaf.attr - name ||
|
leaf['attr-name'] ||
|
||||||
leaf.selector) &&
|
leaf.selector) &&
|
||||||
css`
|
css`
|
||||||
color: #905;
|
color: #905;
|
||||||
@@ -138,7 +138,7 @@ const Leaf = ({ attributes, children, leaf }) => {
|
|||||||
css`
|
css`
|
||||||
color: #690;
|
color: #690;
|
||||||
`}
|
`}
|
||||||
${(leaf.function || leaf.class - name) &&
|
${(leaf.function || leaf['class-name']) &&
|
||||||
css`
|
css`
|
||||||
color: #dd4a68;
|
color: #dd4a68;
|
||||||
`}
|
`}
|
||||||
|
Reference in New Issue
Block a user