How to use the netlify-cms-ui-default.colors.controlLabel function in netlify-cms-ui-default

To help you get started, we’ve selected a few netlify-cms-ui-default examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github netlify / netlify-cms / packages / netlify-cms-widget-markdown / src / MarkdownControl / Shortcode.js View on Github external
props.collapsed &&
    css`
      background-color: ${colors.textFieldBorder};
      cursor: pointer;
    `};
`;

const ShortcodeTopBar = styled(ListItemTopBar)`
  background-color: ${colors.textFieldBorder};
  margin: -14px -14px 0;
  border-radius: 0;
`;

const ShortcodeTitle = styled.div`
  padding: 8px;
  color: ${colors.controlLabel};
`;

export default class Shortcode extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      /**
       * The `shortcodeNew` prop is set to `true` when creating a new Shortcode,
       * so that the form is immediately open for editing. Otherwise all
       * shortcodes are collapsed by default.
       */
      collapsed: !props.node.data.get('shortcodeNew'),
    };
  }

  handleChange = (fieldName, value) => {
github netlify / netlify-cms / packages / netlify-cms-core / src / components / Editor / EditorControlPane / EditorControl.js View on Github external
color: ${props =>
    props.error ? colors.errorText : props.active ? colors.active : colors.controlLabel};
  transition: color ${transitions.main};