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(TabBar): propogate key press events and emit tabChanged signal #406

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

THoj13
Copy link
Contributor

@THoj13 THoj13 commented Nov 13, 2023

Description

These changes add more functionality to how parent components can listen for events from TabBar:

  • propogate up and down key press events so that parent components can optionally run side effects to those events
  • emit a $tabChanged signal whenever the selected tab changes

References

LUI-1187
LUI-1215

Testing

Unit tests been added to test event propogation. If the changes introduced in Tabbar.js is removed, the tests should fail.

Automation

n/a

Checklist

  • all commented code has been removed
  • any new console issues have been resolved
  • code linter and formatter has been run
  • test coverage meets repo requirements
  • PR name matches the expected semantic-commit syntax

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@THoj13 THoj13 force-pushed the fix/tabbar-key-handling branch from 958dd78 to cd325a5 Compare November 15, 2023 14:31
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

1 similar comment
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@THoj13 THoj13 changed the title fix(TabBar): propogate key press events fix(TabBar): propogate key press events and emit tabChanged signal Nov 15, 2023
@ImCoolNowRight ImCoolNowRight force-pushed the fix/tabbar-key-handling branch from cd325a5 to c7a0a66 Compare November 16, 2023 21:28
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ImCoolNowRight ImCoolNowRight merged commit 9f06b81 into develop Nov 16, 2023
5 checks passed
@ImCoolNowRight ImCoolNowRight deleted the fix/tabbar-key-handling branch November 16, 2023 21:45
svc-lightning-ui-components pushed a commit that referenced this pull request Nov 22, 2023
# [@lightningjs/ui-components-v2.17.0](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.16.1...@lightningjs/ui-components-v2.17.0) (2023-11-22)

### Bug Fixes

* **Button:** support re patching prefix after undefined ([#407](#407)) ([e773c32](e773c32))
* **NavigationManager:** adjust isFullyOnScreen and isComponentOnScreen ([#417](#417)) ([32601bd](32601bd))
* remove applySmooth in button ([#409](#409)) ([d2c29dd](d2c29dd))
* **TabBar:** propogate key press events and emit tabChanged signal ([#406](#406)) ([9f06b81](9f06b81))
* **TitleRow:** alias rowMarginTop to titleMarginBottom ([#404](#404)) ([c2c3eb4](c2c3eb4))
* update Checkbox, Radio, and Toggle style mappings ([#408](#408)) ([1e93576](1e93576))

### Features

* **Button:** only repatch prefix/suffix row if props change ([#410](#410)) ([9297903](9297903))
@svc-lightning-ui-components
Copy link
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-v2.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants