Add ID to modal

Hi All,

I have a action that will open a slideover() modal.

Is there anyway to add a ID to the modal?
I need to change the padding of modalContent in this modal and some other styling within this modal.

public static function OpenAction()
{
    return Actions\Action::make('notes')
        ->icon('heroicon-m-document-duplicate')
        ->outlined()
        ->slideOver()
        ->modalIcon('heroicon-m-document-duplicate')
        ->modalHeading('All Notes')
        ->modalDescription(fn ($record) => new HtmlString('For company <strong>'.isset($record->company) ? $record->company->companyname : $record->companyname.'</strong>'))
        ->modalIconColor('info')
        ->modalContent(fn ($record) => view('components.notes', [
            'record' => $record,
        ]))
        ->modalSubmitAction(false)
        ->modalCancelAction(false)
        ->modalFooterActions([
            self::CreateAction()
        ])
        ->stickyModalHeader()
        ->stickyModalFooter()
        ->keyBindings(['command+n', 'ctrl+n']);
}


i know there is
extraAttributes
but this will only apply to the Action button.
Or is it possible to open a view where the modal is in?
I did not find anything in https://filamentphp.com/docs/3.x/actions/modals

Thanks for reading this question.
Solution
You don’t have to have an id or class to target in css.
[wire\:key*="notes.modal"]
Was this page helpful?