mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-02 23:27:28 +03:00
chore: recorder button styling (#19231)
This commit is contained in:
parent
e7088cc685
commit
7bc184f526
@ -136,9 +136,9 @@ export const Recorder: React.FC<RecorderProps> = ({
|
||||
<SourceView text={source.text} language={source.language} highlight={source.highlight} revealLine={source.revealLine}></SourceView>
|
||||
<div className='vbox'>
|
||||
<Toolbar>
|
||||
<ToolbarButton icon='microscope' title='Explore' toggled={mode === 'inspecting'} onClick={() => {
|
||||
<ToolbarButton icon='microscope' title='Pick locator' toggled={mode === 'inspecting'} onClick={() => {
|
||||
window.dispatch({ event: 'setMode', params: { mode: mode === 'inspecting' ? 'none' : 'inspecting' } }).catch(() => { });
|
||||
}}>Explore</ToolbarButton>
|
||||
}}>Pick locator</ToolbarButton>
|
||||
<CodeMirrorWrapper text={locator} language={source.language} readOnly={false} focusOnChange={true} wrapLines={true} onChange={text => {
|
||||
setLocator(text);
|
||||
window.dispatch({ event: 'selectorUpdated', params: { selector: text, language: source.language } });
|
||||
|
Loading…
Reference in New Issue
Block a user