@sproutsocial/racine 11.0.0-beta.0 → 11.0.1-menustyles.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import Box from "../Box";
3
- import { disabled } from "../utils/mixins";
3
+ import { disabled, focusRing } from "../utils/mixins";
4
4
  export var MenuItemContainer = styled(Box).withConfig({
5
5
  displayName: "styles__MenuItemContainer",
6
6
  componentId: "fjvae4-0"
@@ -20,16 +20,16 @@ export var MenuItemContainer = styled(Box).withConfig({
20
20
  return "6px " + props.theme.space[300];
21
21
  }, function (props) {
22
22
  return css(["", ";"], props.theme.typography[200]);
23
+ }, function (props) {
24
+ return props.selected && !props.isCheckboxOrRadio && css(["font-weight:", ";"], function (props) {
25
+ return props.theme.fontWeights.semibold;
26
+ });
23
27
  }, function (props) {
24
28
  return props.active && !props.disabled && css(["color:", ";background-color:", ";.Icon-svg{color:", ";}"], function (props) {
25
29
  return props.theme.colors.text.inverse;
26
30
  }, props.theme.colors.listItem.background.selected, function (props) {
27
31
  return props.theme.colors.text.inverse;
28
32
  });
29
- }, function (props) {
30
- return props.selected && !props.isCheckboxOrRadio && css(["font-weight:", ";"], function (props) {
31
- return props.theme.fontWeights.semibold;
32
- });
33
33
  }, function (props) {
34
34
  return !props.disabled && css(["&:focus,&:hover{color:", ";background-color:", ";.Icon-svg{color:unset;}}"], function (props) {
35
35
  return props.theme.colors.text.body;
@@ -44,4 +44,4 @@ export var MenuItemContainer = styled(Box).withConfig({
44
44
  export var MenuItemsContainer = styled(Box).withConfig({
45
45
  displayName: "styles__MenuItemsContainer",
46
46
  componentId: "fjvae4-1"
47
- })(["list-style-type:none;outline:0;"]);
47
+ })(["list-style-type:none;&:focus{", "}"], focusRing);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.0.0-beta.0",
3
+ "version": "11.0.1-menustyles.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",