Skip to content

Conversation

@CITguy
Copy link
Contributor

@CITguy CITguy commented May 16, 2019

JIRA: SURF-1700

LGTM's

  • Dev LGTM
  • Zoom LGTM

@HelixUI
Copy link
Contributor

HelixUI commented May 16, 2019

Deploy preview for helix-ui ready!

Built with commit 89a643d

https://deploy-preview-507--helix-ui.netlify.com

Copy link
Contributor Author

@CITguy CITguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:

Copy link
Contributor Author

@CITguy CITguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODOs

@catsiller catsiller force-pushed the css-prop-refactor-prototype branch from a8fcc4d to cc68095 Compare May 20, 2019 15:34
@CITguy CITguy force-pushed the css-prop-refactor-prototype branch from fab687d to 79b5aa9 Compare May 20, 2019 18:29
Copy link
Contributor Author

@CITguy CITguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes to aid in review

background-color: @gray-50;
border-radius: 2px;
border: 2px solid transparent;
color: @gray-900;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrated to Light DOM CSS

}

#hxLink {
color: @gray-900;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because @gray-900 is the default color for the File Tile, so we let inheritance take over.

&[href]:hover {
color: @cyan-500;
&[href] {
color: var(--hxLink-color, inherit);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using --hxLink-color only when it's an actual link ([href] is present).


:host([invalid]) {
#hxFileTile {
border-color: @red-900;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to Light DOM CSS

// TODO: hook for progress bar fill color
:host([progress]) {
#hxLink {
color: @gray-600;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved color definition to Light DOM CSS to allow for css inheritance to take over.

}

// DEPRECATED: remove in v1.0.0
hx-modalhead {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

organized all deprecated styling further below, in one place

hx-pill {
background-color: @gray-400;
border-radius: 1em;
color: @gray-900;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrated from Shadow DOM CSS

}

> hx-div {
--padding-left: @space[md];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in response to renaming hx-div CSS custom props

&::after {
border-left-color: @green-500;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrated from Shadow DOM CSS

:root {
--hxSelect__trigger-background: @gray-0;
--hxSelect__trigger-background--disabled: @gray-100;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed defaults, because default values are now defined inline with the hook definitions.

See src/helix-ui/elements/HXSelectElement.less.

@CITguy CITguy added this to the v0.17.x milestone May 20, 2019
@CITguy CITguy marked this pull request as ready for review May 21, 2019 15:58
@catsiller catsiller force-pushed the css-prop-refactor-prototype branch from 73dc0e1 to 89a643d Compare May 21, 2019 22:00
Copy link
Contributor Author

@CITguy CITguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dev LGTM

Copy link
Member

@100stacks 100stacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 🎉

Zoom LGTM

@catsiller catsiller merged commit 935a9a7 into master May 21, 2019
@catsiller catsiller deleted the css-prop-refactor-prototype branch May 21, 2019 22:23
@CITguy CITguy changed the title Css prop refactor prototype refactor(CSS): refactor application of colors Jun 26, 2019
@CITguy CITguy added the :shipit: shipped label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants