jss icon indicating copy to clipboard operation
jss copied to clipboard

[jss-nested] container.indexOf is not a function

Open hdriqi opened this issue 7 years ago • 1 comments

	'@global a': {
		'font-family': 'Source Sans Pro, sans-serif',
		'font-weight': '600',
		'color': 'white',
		'&:focus': {
			color: '#FF7EBF'
		},
		'&:hover': {
			color: '#FF7EBF'
		}
	},

This code generate error container.indexOf is not a function. I am using default preset.

hdriqi avatar Aug 19 '17 11:08 hdriqi

looks like a bug with nesting and inline globals.

As a workaround you can do this:

'@global': {
  a: {
    'color': 'white',
    '&:focus': {
      color: '#FF7EBF'
    }
  }
}

kof avatar Aug 19 '17 11:08 kof