Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [`main`](https://github.com/elastic/eui/tree/main)

- Added `listOptions` glyph to `EuiIcon` ([#5705](https://github.com/elastic/eui/pull/5705))
- Updated `testenv` mock for `EuiFlyout` to include default `aria-label` on the close button ([#5702](https://github.com/elastic/eui/pull/5702))

**Breaking changes**
Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const iconTypes = [
'link',
'list',
'listAdd',
'listOptions',
'lock',
'lockOpen',
'logstashFilter',
Expand Down
18 changes: 18 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3979,6 +3979,24 @@ exports[`EuiIcon props type listAdd is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type listOptions is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoaded"
data-icon-type="listOptions"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.597 3a.411.411 0 00-.299.132l-1.85 1.993-.756-.7a.412.412 0 00-.28-.124.42.42 0 00-.292.098.333.333 0 00-.12.257.335.335 0 00.127.254l1.064.982A.418.418 0 002.488 6a.411.411 0 00.288-.126L4.904 3.58a.328.328 0 00.095-.25.337.337 0 00-.126-.238A.421.421 0 004.597 3zM7 5h8V4H7v1zM4.298 7.132A.411.411 0 014.597 7a.421.421 0 01.276.093c.076.062.12.147.126.238a.328.328 0 01-.095.25L2.776 9.874a.411.411 0 01-.288.126.418.418 0 01-.297-.108L1.127 8.91A.335.335 0 011 8.656a.333.333 0 01.12-.257.42.42 0 01.292-.098c.108.005.21.05.28.123l.757.701 1.849-1.993zM7 9h8V8H7v1zm-2.702 2.132A.411.411 0 014.597 11a.421.421 0 01.276.093c.076.062.12.147.126.238a.328.328 0 01-.095.25l-2.128 2.293a.411.411 0 01-.288.126.418.418 0 01-.297-.108l-1.064-.982A.335.335 0 011 12.656a.333.333 0 01.12-.257.421.421 0 01.292-.098c.108.005.21.05.28.123l.757.701 1.849-1.993zM7 13h8v-1H7v1z"
/>
</svg>
`;

exports[`EuiIcon props type lock is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
35 changes: 35 additions & 0 deletions src/components/icon/assets/list_options.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js

import * as React from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}

const EuiIconListOptions = ({
title,
titleId,
...props
}: React.SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M4.597 3a.411.411 0 00-.299.132l-1.85 1.993-.756-.7a.412.412 0 00-.28-.124.42.42 0 00-.292.098.333.333 0 00-.12.257.335.335 0 00.127.254l1.064.982A.418.418 0 002.488 6a.411.411 0 00.288-.126L4.904 3.58a.328.328 0 00.095-.25.337.337 0 00-.126-.238A.421.421 0 004.597 3zM7 5h8V4H7v1zM4.298 7.132A.411.411 0 014.597 7a.421.421 0 01.276.093c.076.062.12.147.126.238a.328.328 0 01-.095.25L2.776 9.874a.411.411 0 01-.288.126.418.418 0 01-.297-.108L1.127 8.91A.335.335 0 011 8.656a.333.333 0 01.12-.257.42.42 0 01.292-.098c.108.005.21.05.28.123l.757.701 1.849-1.993zM7 9h8V8H7v1zm-2.702 2.132A.411.411 0 014.597 11a.421.421 0 01.276.093c.076.062.12.147.126.238a.328.328 0 01-.095.25l-2.128 2.293a.411.411 0 01-.288.126.418.418 0 01-.297-.108l-1.064-.982A.335.335 0 011 12.656a.333.333 0 01.12-.257.421.421 0 01.292-.098c.108.005.21.05.28.123l.757.701 1.849-1.993zM7 13h8v-1H7v1z" />
</svg>
);

export const icon = EuiIconListOptions;
1 change: 1 addition & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ const typeToPathMap = {
link: 'link',
list: 'list',
listAdd: 'list_add',
listOptions: 'list_options',
lock: 'lock',
lockOpen: 'lockOpen',
logoAWS: 'logo_aws',
Expand Down
3 changes: 3 additions & 0 deletions src/components/icon/svgs/list_options.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.