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

ModernTaxonomyPicker: Style problem - term list overflows panel footer #1875

Open
diabhoil opened this issue Aug 29, 2024 · 1 comment
Open

Comments

@diabhoil
Copy link

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.19.0]

Expected / Desired Behavior / Question

The buttons in the footer of the picker panel should be not "above" the term list. There should be a clear separation.

Observed Behavior

In a long list, the individual elements are located below the button bar.
image

Steps to Reproduce

Create a blank SPFx Solution (v1.19.0), add this package, add basic ModernTaxonomyPicker somewhere in the tsx component (example code below). Add valid termSetId for a larger term set. Serve the webpart (via gulp serve), include on SharePoint page and open the "add term panel" of the picker.

For example

import * as React from 'react';
import type { ISimpleMtpSampleProps } from './ISimpleMtpSampleProps';
import { ModernTaxonomyPicker } from '@pnp/spfx-controls-react/lib/ModernTaxonomyPicker';

export default class SimpleMtpSample extends React.Component<ISimpleMtpSampleProps, {}> {
  public render(): React.ReactElement<ISimpleMtpSampleProps> {
    const {
      termId, context
    } = this.props;

    return (
      <section>
        <ModernTaxonomyPicker allowMultipleSelections={true}
                    termSetId={termId}
                    panelTitle="Select a term"
                    label={"Test"}
                    context={context as any}
                />
      </section>
    );
  }
}
Copy link

Thank you for submitting your first issue to this project.

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

No branches or pull requests

1 participant