Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement library headers #449

Merged
merged 15 commits into from
Dec 22, 2018
Merged

Conversation

AlejandroYanes
Copy link
Collaborator

fixes #373

@@ -0,0 +1,73 @@
.react-rainbow-selector {
border-radius: 22px;
background-color: #fff;
Copy link
Collaborator

Choose a reason for hiding this comment

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

change to background-color: transparent

box-shadow: 0 2px 4px 0 #e3e5ed;
border: #e3e5ed 1px solid;
z-index: 100;
/*position: fixed;*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this comment

<ButtonIcon icon={<RightArrow />} size="small" onClick={this.handleArrowCLick} />
</div>
<RenderIf isTrue={isOpen}>
<div className="react-rainbow-selector_divider" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

use our MenuDivider component

@coveralls
Copy link

coveralls commented Dec 18, 2018

Pull Request Test Coverage Report for Build 760

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 77.825%

Totals Coverage Status
Change from base Build 721: 0.0%
Covered Lines: 1287
Relevant Lines: 1584

💛 - Coveralls

@TahimiLeonBravo
Copy link
Collaborator

screen shot 2018-12-18 at 5 20 46 pm

screen shot 2018-12-18 at 5 19 46 pm

@LeandroTorresSicilia
Copy link
Member

this is a styleguide component, then it must be inside library/styleguideComponents

@@ -0,0 +1,164 @@
/* eslint-disable no-script-url */

Choose a reason for hiding this comment

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

I think you should try to use our ButtonMenu for this or at least our internal PrimitiveMenu component.
Remember that you can pass a component in the MenuItem label prop.
This would simplify the component dramatically because all this logic is already in PrimitiveMenu.

export default function RightArrow({ className, style }) {
const getArrowClassName = () => classnames('rainbow-accordion-section_right-icon', className);

return (

Choose a reason for hiding this comment

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

why not make the arrow animated?

<img src={rainbowLogo} alt="react-rainbow" />
<div className="react-rainbow-selector_item-text">
<span className="react-rainbow-selector_item-text_header">react-rainbow components</span>
<span className="react-rainbow-selector_item-text_subheader">version 0.8.20</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Each library has the load the version dynamically. It can't be passed manually.

<MenuDivider className="react-rainbow-selector_divider" />
<li>
<a
href="javascript:void(0);"
Copy link
Collaborator

Choose a reason for hiding this comment

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

it should navigate to the prismic library

@LeandroTorresSicilia LeandroTorresSicilia merged commit 632b276 into master Dec 22, 2018
@TahimiLeonBravo TahimiLeonBravo deleted the implement-library-headers branch September 23, 2019 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: implement the library headers to connect all the projects.
4 participants