Skip to content

Commit

Permalink
feat(data-grid): add part attributes for scrollable container and tit…
Browse files Browse the repository at this point in the history
…le block
  • Loading branch information
Amir Ashkan Baghdoust committed Nov 6, 2024
1 parent dd5caf6 commit 35c0104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/components/data-grid/data-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ export class DataGrid {
<div
ref={(el) => (this.elScrollContainer = el)}
class={`${name}__scroll-container`}
part="scrollable"
style={{ height: this.height || 'auto' }}
onScroll={() => this.onTableScroll()}
>
Expand Down Expand Up @@ -1393,7 +1394,7 @@ export class DataGrid {
>
{this.styles && <style>{this.styles}</style>}
<div class={this.getCssClassMap()}>
<div class={`${name}__title-block`}>
<div class={`${name}__title-block`} part="title">
{/* h4 tag + h5 styles feels weird, ideally one should be able to set the tag with an attribute */}
{this.heading && (
<h4 class={`${name}__heading scl-h5`}>{this.heading}</h4>
Expand Down

0 comments on commit 35c0104

Please sign in to comment.