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

fix: button fiori3 fixes and documentation improvements #2221

Merged
merged 4 commits into from
Mar 25, 2020

Conversation

rengare
Copy link
Contributor

@rengare rengare commented Mar 24, 2020

Please provide a link to the associated issue.

Please provide a brief summary of this pull request.

The PR brings:

  • fix for RTL mode for split button
  • fix for build of documentation for segmented button
  • deprecated label in button component for properties being deprecated (for documentation purpose)

Please check whether the PR fulfills the following requirements

Documentation checklist:

  • Documentation Examples

Screenshots

Before

Segmented button API not built
image

Options not marked as deprecated
image

The default value for params are missing
image

RTL mode not working
image

After

Segmented button API not built
image

Options not marked as deprecated
image

The default value for params are missing
image

RTL mode not working
image

@rengare rengare added this to the Sprint 33 - London milestone Mar 24, 2020
@rengare rengare requested a review from a team March 24, 2020 10:43
@rengare rengare self-assigned this Mar 24, 2020
@CLAassistant
Copy link

CLAassistant commented Mar 24, 2020

CLA assistant check
All committers have signed the CLA.

@rengare rengare force-pushed the fix/button-fiori3-fixes branch from bc39583 to ff50df6 Compare March 24, 2020 10:52
@@ -18,7 +18,7 @@
<separator></separator>

<fd-docs-section-title [id]="'Button-sizes'" [componentName]="'button'"> Button Sizes </fd-docs-section-title>
<description> Use <code class="code-snippet">[compact]="true"</code> for the mobile button size. </description>
<description> Use (or skip) <code class="code-snippet">[compact]="false"</code> for the mobile button size. </description>
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines 20 to 21
<button class="programmable-button" fd-button (click)="isOpen=true">Open</button>
<button class="programmable-button" fd-button (click)="isOpen=false">Close</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

I have mixed feelings about this :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the class to docs-button

| 'positive'
| 'negative'
| 'attention'
| 'half'
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we keeping the half button? @droshev

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't want to keep something that is not part of Fiori 3. At least not in the API

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed half from docs but for now I didn't remove half from component

@@ -41,50 +52,58 @@ export class ButtonComponent implements OnInit, CssClassBuilder {
this._change();
} // user's custom classes
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment should be TypeDocs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes applied

@@ -23,5 +23,5 @@ export class SegmentedButtonComponent {

/** @hidden */
@HostBinding('class.fd-segmented-button')
fdButtonGroupClass: boolean = true;
fdsegmentedButtonClass: boolean = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe fdSegmentedButtonClass?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thats the reason for using fd prefix for variable names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

variable name changed

Copy link
Contributor

@InnaAtanasova InnaAtanasova left a comment

Choose a reason for hiding this comment

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

I left a few comments but they are minor so feel free to merge it once @droshev approves. It's good to have everything merged to feat/button-dialog-fonts so we test it tomorrow

@rengare rengare merged commit ad366e7 into feat/button-dialog-fonts Mar 25, 2020
@rengare rengare deleted the fix/button-fiori3-fixes branch March 25, 2020 14:30
salarenko pushed a commit that referenced this pull request Mar 25, 2020
* fix: few fixes in the code and documentation found after tests

* small fixes

* workaround added to fix missing selector

* fix: addresing pr comments
salarenko pushed a commit that referenced this pull request Mar 31, 2020
* fix: few fixes in the code and documentation found after tests

* small fixes

* workaround added to fix missing selector

* fix: addresing pr comments
rengare added a commit that referenced this pull request Apr 2, 2020
…2224)

* feat: addopt styles for buttons to match fiori 3

* fix: bring icons and fonts (#2187)

* fix: Migrate modal to dialog support Fiori3 design and features (#2189)

* fix(core) rename modal to dialog

* Reworking dialogs header

* Refactor dialogs footer

* fix(core) Add draggable dialog support

* fix(core) Improve dynamic component and dialog service code

* fix(core) Introduce custom injector to DynamicComponents | Inject configs to Alert and Notification

* fix(core) Create new Dialog Container | Use InjectionTokens with parent assecuration

* fix(core) Create resize directive

* Update Dialog documentation

* fix(core) Add responsive paddings feature to dialog

* fix(core) Add CssClassBuilders to Dialog and DialogContainer

* fix(core) Update descriptions

* fIX(Core) Revert Alert and Notification changes

* fix(core) Add unit tests

* fix(core) update missing buttons adnotations

* fix(core) Update popover example

* fix(core) Fix indirect imports

* fix(core) Add loading state do Dialog

* fix(core) Update tests

* fix(core) Update tests

* fix(core) Fix alert and notifications

* fix(core) Address PR requests

* fix(core) Fix resize for IE11

* fix: button fiori3 fixes and documentation improvements (#2221)

* fix: few fixes in the code and documentation found after tests

* small fixes

* workaround added to fix missing selector

* fix: addresing pr comments

* fix: bring icons to angular.json file (#2227)

* changes to support new code contribution guidline

* fix(core) Add footer buttons wrapper

* fix(core) Apply documentation changes according to PR comments

* added ngoninit to button

* fix(core) Create 'closestElement' function

* Update button-docs.component.html

* Update date-picker-complex-i18n-example.component.html

* Update dialog-docs-header.component.html

* Update dialog-docs.component.html

* Update component-based-dialog-example.component.ts

* Update dialog-backdrop-container-example.component.ts

* fix closestElement tests

* chore: bump styles and theming package versions

* fix: remove dialog styling

* fix: shellbar product menu markup update

* menu button fixed

* fix(core) fix Dialog styles | Change dialog buttons order

* Add NODE_OPTIONS to netlify.toml

* feat: fd-button--transparent added to input-group component

* fix shellbar styling issues

* chore: bump fundamental-styles version

* fix(core) Clear selected products in complex dialog example

Co-authored-by: Gracjan Górecki <gorecki.gracjan@hotmail.com>
Co-authored-by: Inna Atanasova <39598672+InnaAtanasova@users.noreply.github.com>
Co-authored-by: Vanessa-Cusmich <54723167+Vanessa-Cusmich@users.noreply.github.com>
Co-authored-by: deno <mladen.droshev@sap.com>
Co-authored-by: Mike O'Donnell <mikerodonnell89@users.noreply.github.com>
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.

5 participants