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

feat(ui5-messagestrip): initial implementation #80

Merged
merged 25 commits into from
Mar 15, 2019
Merged

feat(ui5-messagestrip): initial implementation #80

merged 25 commits into from
Mar 15, 2019

Conversation

fifoosid
Copy link
Contributor

@fifoosid fifoosid commented Feb 21, 2019

Thank you for your contribution! 👏

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

MapTo0
MapTo0 previously requested changes Feb 21, 2019
packages/main/src/MessageStrip.js Outdated Show resolved Hide resolved
packages/main/src/MessageStrip.js Outdated Show resolved Hide resolved
packages/main/src/MessageStrip.js Show resolved Hide resolved
packages/main/src/MessageStripContext.js Outdated Show resolved Hide resolved
packages/main/src/MessageStripContext.js Outdated Show resolved Hide resolved
packages/main/src/themes/base/MessageStrip.less Outdated Show resolved Hide resolved
packages/main/src/themes/sap_belize_hcb/MessageStrip.less Outdated Show resolved Hide resolved
/**
* Defines the <code>ui5-messagestrip</code> type.
* </br></br>
* <b>Note:</b> Available options are "Information", "Positive", "Negative",
Copy link
Member

Choose a reason for hiding this comment

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

Information, Positive ..

Copy link
Member

@ilhan007 ilhan007 left a comment

Choose a reason for hiding this comment

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

I requested few changes.

In addition, you can add MessageStrip.spec.js to asset event is being fired upon close button click.

Copy link
Member

@MapTo0 MapTo0 left a comment

Choose a reason for hiding this comment

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

I don't like the styles injection approach - better try to refactor a bit the button and have a control over the border from the :host of the button? IMHO we should do the styles injection in super special use cases.

packages/main/src/MessageStripContext.js Outdated Show resolved Hide resolved
@fifoosid fifoosid changed the title feat(ui5-messagestrip): add new component feat(ui5-messagestrip): initial implementation of ui5-messagestrip Feb 27, 2019
onAfterRendering() {
// Hack for styling the button
if (!this.hideCloseButton) {
this.shadowRoot.querySelector("ui5-button")._customClasses = ["ButtonInMessageStrip"];
Copy link
Member

Choose a reason for hiding this comment

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

add sapWC prefix to be compliant with the class names written so far

ilhan007
ilhan007 previously approved these changes Feb 28, 2019
@@ -57,6 +57,11 @@ span[data-sap-ui-wc-root] {
}
}

& .sapMBtn.sapWCButtonInMessageStrip {
min-height: @_sap_ui_webcomponents_main_button_compact_height;
Copy link
Member

Choose a reason for hiding this comment

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

I still think this might happen in MessageStrip's less file ..

@MapTo0 MapTo0 changed the title feat(ui5-messagestrip): initial implementation of ui5-messagestrip feat(ui5-messagestrip): initial implementation Mar 14, 2019
@MapTo0 MapTo0 merged commit cbc9c75 into master Mar 15, 2019
@MapTo0 MapTo0 deleted the messagestrip branch March 15, 2019 11:16
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.

3 participants